Skip to content

Commit

Permalink
Merge pull request #1 from radicalbit/add_dockerfile_option
Browse files Browse the repository at this point in the history
feat: add dockerfile input to docker workflow
  • Loading branch information
lorenzodagostinoradicalbit authored May 24, 2024
2 parents a0fc7af + 56858ad commit ad37ade
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ on:
required: false
type: 'string'
default: '.'
dockerfile:
description: 'Dockerfile path'
required: false
type: 'string'
default: 'Dockerfile'
secrets:
USERNAME:
description: 'Registry username'
Expand All @@ -38,7 +43,7 @@ jobs:

steps:
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -57,5 +62,6 @@ jobs:
uses: docker/build-push-action@v5
with:
context: ${{ inputs.context }}
file: ${{ inputs.context }}/${{ inputs.dockerfile }}
push: ${{ inputs.push }}
tags: ${{ secrets.ORGANIZATION }}/${{ inputs.image }}:${{ inputs.tag }}

0 comments on commit ad37ade

Please sign in to comment.