diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 354066b0..01d524cd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,7 +7,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Extract Version id: version_step run: | @@ -15,12 +15,12 @@ jobs: echo "##[set-output name=version_tag;]kingwrcy/moments:${GITHUB_REF#$"refs/tags/v"}" echo "##[set-output name=latest_tag;]kingwrcy/moments:latest" - 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 DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USER_NAME }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }} @@ -33,12 +33,13 @@ jobs: - name: Build and push Docker images id: docker_build - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: push: true context: . + platforms: linux/amd64,linux/arm64,linux/arm/v7 tags: | ${{env.VERSION_TAG}} ${{env.LASTEST_TAG}} build-args: | - ${{steps.version_step.outputs.version}} \ No newline at end of file + ${{steps.version_step.outputs.version}}