Skip to content

Commit

Permalink
write output file to the root of container
Browse files Browse the repository at this point in the history
  • Loading branch information
dekiel committed Oct 9, 2024
1 parent f6a613c commit 974aee2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions cmd/image-builder/images/kaniko/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ FROM gcr.io/kaniko-project/executor:v1.23.2

COPY --from=builder /app/image-builder /image-builder

# Create a tmp directory to write image-builder output in default location
RUN mkdir /tmp

ENTRYPOINT ["/image-builder"]
2 changes: 1 addition & 1 deletion cmd/image-builder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ func (o *options) gatherOptions(flagSet *flag.FlagSet) *flag.FlagSet {
flagSet.BoolVar(&o.parseTagsOnly, "parse-tags-only", false, "Only parse tags and print them to stdout")
flagSet.StringVar(&o.oidcToken, "oidc-token", "", "Token used to authenticate against Azure DevOps backend service")
flagSet.StringVar(&o.azureAccessToken, "azure-access-token", "", "Token used to authenticate against Azure DevOps API")
flagSet.StringVar(&o.tagsOutputFile, "tags-output-file", "/tmp/generated-tags.json", "Path to file where generated tags will be written as JSON")
flagSet.StringVar(&o.tagsOutputFile, "tags-output-file", "/generated-tags.json", "Path to file where generated tags will be written as JSON")

return flagSet
}
Expand Down

0 comments on commit 974aee2

Please sign in to comment.