Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Sep 8, 2022
1 parent 25887ce commit 3afc086
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
dockerfile:
description: Path to Dockerfile
required: false
default: Dockerfile
default: ''
repository:
required: true
description: Repository that all of the images and tags will pull from and push to
Expand Down
3 changes: 2 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ async function buildStage(stage: string, extraTags: string[]): Promise<string> {
core.startGroup(`Building stage: ${stage}`)

const dockerfile = core.getInput('dockerfile')
const dockerfileArg = (dockerfile === '') ? [] : ['--file', dockerfile]

const targetTag = getTaggedImageForStage(stage, getTagForRun())

Expand All @@ -106,7 +107,7 @@ async function buildStage(stage: string, extraTags: string[]): Promise<string> {
// '--build-arg', 'BUILDKIT_INLINE_CACHE="1"',
...buildArgs,
...cacheFromArg,
'--file', dockerfile,
...dockerfileArg,
'--tag', targetTag,
'--target', stage,
core.getInput('context'),
Expand Down

0 comments on commit 3afc086

Please sign in to comment.