Skip to content

Commit

Permalink
ci: rollback to build-push-action
Browse files Browse the repository at this point in the history
  • Loading branch information
matteovivona committed Jun 11, 2024
1 parent 780cbfd commit 562f410
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
run: |
docker buildx build \
--file Dockerfile \
--platform linux/amd64,linux/arm64 \
--tag ${{env.IMAGE_NAME}}:latest \
--tag ${{env.IMAGE_NAME}}:${{ steps.package-version.outputs.current-version}} \
--cache-from=type=gha \
--cache-to=type=gha,mode=max \
--push .
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
file: Dockerfile
push: true
tags: |
${{env.IMAGE_NAME}}:${{ steps.package-version.outputs.current-version}}
cache-from: |
type=gha
cache-to: type=gha,mode=max


0 comments on commit 562f410

Please sign in to comment.