Skip to content

Commit

Permalink
Update Docker reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
admdly committed Dec 4, 2023
1 parent 0a5d7aa commit e7c362d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ jobs:
username: ${{ secrets.dockerhub_username }}
password: ${{ secrets.dockerhub_token }}

- name: 'Checkout Dockerfile'
uses: actions/checkout@v4
with:
sparse-checkout: |
Dockerfile
sparse-checkout-cone-mode: false

- name: 'Download Files Required for Build'
if: ${{ inputs.download_artifact != '' }}
uses: actions/download-artifact@v3
Expand All @@ -86,8 +93,7 @@ jobs:
id: build
uses: docker/build-push-action@v5
with:
cache-from: type=gha,scope=${{ github.ref_name }}-${{ matrix.platform }}
cache-to: type=gha,scope=${{ github.ref_name }}-${{ matrix.platform }}
context: .
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ inputs.repository_name }},push-by-digest=true,name-canonical=true,push=true
platforms: ${{ matrix.platform }}
Expand Down

0 comments on commit e7c362d

Please sign in to comment.