Skip to content

Commit

Permalink
feat(docker-push): add file option (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdassonvil authored Nov 27, 2024
1 parent ae0c9f9 commit 959a708
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-push-v4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ on:
use_ssh:
type: boolean
default: false
file:
type: string
required: false
secrets:
OLYMPE_4_DEMETER:
required: false
Expand Down Expand Up @@ -82,6 +85,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ${{ inputs.build_context }}
file: ${{ inputs.file || format('{0}/Dockerfile', inputs.build_context) }}
push: true
tags: ${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/${{ inputs.image_name }}:${{ inputs.image_tag }}
cache-from: type=gha
Expand All @@ -93,6 +97,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ${{ inputs.build_context }}
file: ${{ inputs.file || format('{0}/Dockerfile', inputs.build_context) }}
push: true
tags: ${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.eu-central-1.amazonaws.com/${{ inputs.image_name }}:${{ inputs.image_tag }}
ssh: ${{ steps.set_ssh.outputs.ssh }}

0 comments on commit 959a708

Please sign in to comment.