diff --git a/.gitea/workflows/act_runtime.yaml b/.gitea/workflows/act_runtime.yaml new file mode 100644 index 0000000..c539351 --- /dev/null +++ b/.gitea/workflows/act_runtime.yaml @@ -0,0 +1,44 @@ +--- +name: act_runtime +on: + schedule: + - cron: '21 2 * * *' + push: + branches: + - main + +env: + TAGS: '{"ubuntu-latest": {"node:20-bullseye-slim": "20.04-arm64","node:20-bookworm-slim": "arm64"},"ubuntu-latest-amd64": {"node:20-bullseye-slim": "20.04-amd64","node:20-bookworm-slim": "amd64"}}' + +jobs: + build_images: + strategy: + matrix: + os: + - ubuntu-latest + - ubuntu-latest-amd64 + base: + - node:20-bullseye-slim + - node:20-bookworm-slim + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: code.icb4dc0.de + username: prskr + password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: "./act_runtime" + push: true + tags: code.icb4dc0.de/infrastructure/images/act_runtime:${{ fromJSON(env.TAGS)[matrix.os][matrix.base] }} + build-args: | + BASE_IMAGE=${{ matrix.base }} \ No newline at end of file diff --git a/.gitea/workflows/image_builds.yaml b/.gitea/workflows/image_builds.yaml index 0762eb0..32f416b 100644 --- a/.gitea/workflows/image_builds.yaml +++ b/.gitea/workflows/image_builds.yaml @@ -12,7 +12,6 @@ jobs: strategy: matrix: image: - - act_runtime - renovate runs-on: ubuntu-latest steps: diff --git a/act_runtime/Dockerfile b/act_runtime/Dockerfile index cd80bf1..e05feab 100644 --- a/act_runtime/Dockerfile +++ b/act_runtime/Dockerfile @@ -5,7 +5,8 @@ FROM ${BASE_IMAGE} RUN --mount=type=cache,target=/var/lib/apt \ --mount=type=cache,target=/var/lib/cache \ apt-get update && \ - apt-get install -y git-lfs ca-certificates curl gnupg gcc make unzip && \ + apt-get install -y git-lfs ca-certificates curl gnupg gcc make unzip libgraphite2-3 zstd && \ + mkdir -p /etc/apt/keyrings/ && \ curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \ echo \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \