Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
Update build step to use docker compose
  • Loading branch information
martijndeb authored Jan 5, 2024
1 parent 962e9e5 commit b2eb057
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,10 @@ jobs:

- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

run: docker-compose build && docker-compose push
env:
DOCKER_BUILDKIT: 1

- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
Expand Down

0 comments on commit b2eb057

Please sign in to comment.