From c992d17a99dfac037caeb3bde912229c597228bc Mon Sep 17 00:00:00 2001 From: Jasmin Date: Sat, 16 Nov 2024 10:01:32 +0100 Subject: [PATCH] feat: add arm64 docker build --- .github/workflows/publish.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 392c87d..3627114 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,7 @@ name: ci on: push: branches: + - main jobs: build-and-publish: @@ -10,20 +11,20 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Docker meta id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ghcr.io/witchtrade/frontend tags: | - type=raw,value={{branch}}-{{sha}} + type=raw,value={{sha}} flavor: | latest=${{ endsWith(github.ref, github.event.repository.default_branch) }} - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -31,7 +32,8 @@ jobs: - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: push: true - tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file + tags: ${{ steps.meta.outputs.tags }} + platforms: linux/amd64,linux/arm64