From e61e2409d3a3f6bbfd2ec64f2e141038032b5f4f Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 14 Jul 2024 22:08:26 +0800 Subject: [PATCH] ci: update Docker actions and remove ARM build step - Remove `make build_linux_arm` step - Update `docker/setup-qemu-action` to v3 - Update `docker/setup-buildx-action` to v3 - Update `docker/login-action` to v4 - Update `docker/metadata-action` to v5 - Update `docker/build-push-action` to v6 - Remove `linux/arm` platform from build platforms Signed-off-by: Bo-Yi Wu --- .github/workflows/docker.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 15e0cc3..105a9d7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -26,23 +26,22 @@ jobs: - name: Build binary run: | make build_linux_amd64 - make build_linux_arm make build_linux_arm64 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v4 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -50,7 +49,7 @@ jobs: - name: Docker meta id: docker-meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: | ${{ github.repository }} @@ -62,10 +61,10 @@ jobs: type=semver,pattern={{major}} - name: Build and push - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v6 with: context: . - platforms: linux/amd64,linux/arm,linux/arm64 + platforms: linux/amd64,linux/arm64 file: docker/Dockerfile push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.docker-meta.outputs.tags }}