Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
mattops committed Aug 2, 2023
1 parent bedac91 commit e661600
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/docker-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ runs:
using: "composite"
steps:
- uses: docker/setup-qemu-action@v2
if: contains(fromJSON(steps.check-changes.outputs.projects), inputs.project) || inputs.force-deploy == 'true'
if: inputs.force-deploy == 'true'
- uses: docker/setup-buildx-action@v2
if: contains(fromJSON(steps.check-changes.outputs.projects), inputs.project) || inputs.force-deploy == 'true'
- uses: docker/login-action@v2
if: contains(fromJSON(steps.check-changes.outputs.projects), inputs.project) || inputs.force-deploy == 'true'
if: inputs.force-deploy == 'true'
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -31,7 +31,11 @@ runs:
uses: docker/build-push-action@v4
if: inputs.force-deploy == 'true'
with:
cache-from: type=gha
cache-to: type=gha,mode=max
context: .
push: ${{ inputs.push }}
provenance: false
tags: |
ghcr.io/ministryofjustice/${{ inputs.project }}:latest
ghcr.io/ministryofjustice/${{ inputs.project }}:${{ inputs.version }}

0 comments on commit e661600

Please sign in to comment.