From 587f59442609e5ed48601af4c2f6e979c0b8a22d Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Fri, 19 Apr 2024 18:56:32 +0200 Subject: [PATCH] Update workflows to go-auto-release --- .github/workflows/docker.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f4429a2..7f5182b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -19,15 +19,17 @@ jobs: steps: - name: "Checkout source code at current commit" uses: actions/checkout@v4 - - name: "Build and push docker image to DockerHub" - uses: docker/build-push-action@v2 + + - name: Build + id: build + uses: cloudposse/github-action-docker-build-push@1.15.1 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - repository: ${{ github.repository }} registry: registry-1.docker.io - tag_with_ref: true - tag_with_sha: true + organization: "${{ github.event.repository.owner.login }}" + repository: "${{ github.event.repository.name }}" + login: "${{ secrets.DOCKERHUB_USERNAME }}" + password: "${{ secrets.DOCKERHUB_PASSWORD }}" + platforms: linux/amd64,linux/arm64 release: if: github.event_name == 'push'