We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running
skaffold build -q
should output the actual built tag in the tag field.
tag contains the sha256 id of the image
apiVersion: skaffold/v3 kind: Config metadata: name: test build: artifacts: - image: "target" tagPolicy: envTemplate: template: "{{.VERSION}}"
FROM alpine@sha256:8914eb54f968791faf6a8638949e480fef81e697984fba772b3976835194c6d4
VERSION=1 skaffold build
Generating tags... - target -> target:1
VERSION=1 skaffold build -q --dry-run
{"builds":[{"imageName":"target","tag":"target:1"}]}
VERSION=1 skaffold build -q
{"builds":[{"imageName":"target","tag":"target:49176f190c7e9cdb51ac85ab6c6d5e4512352218190cd69b08e6fd803ffbf3da"}]}
Seeing as the docs state:
# Quietly build artifacts and output the image names as json skaffold build -q > build_result.json
I would have expected that -q outputs the tag that it actually created even if not dry running.
Fun fact, if you also include --push then the result is correct, though the sha256 digest is appended:
--push
> VERSION=1 skaffold build --default-repo REDACTED -q --push {"builds":[{"imageName":"target","tag":"REDACTED/target:1@sha256:c0d488a800e4127c334ad20d61d7bc21b4097540327217dfab52262adc02380c"}]}
The text was updated successfully, but these errors were encountered:
I'm experiencing the same issue. I tried version 1.39.2 and the same behavior exists there as well.
Sorry, something went wrong.
Over a year later this is still a problem unless push is set to true.
Run into same problem here, too. The tagPolicy configuration is ignored. Skaffold v2.13.0
tagPolicy
No branches or pull requests
Expected behavior
Running
should output the actual built tag in the tag field.
Actual behavior
tag contains the sha256 id of the image
Information
FROM alpine@sha256:8914eb54f968791faf6a8638949e480fef81e697984fba772b3976835194c6d4
Steps to reproduce the behavior
VERSION=1 skaffold build
VERSION=1 skaffold build -q --dry-run
VERSION=1 skaffold build -q
Seeing as the docs state:
I would have expected that -q outputs the tag that it actually created even if not dry running.
Fun fact, if you also include
--push
then the result is correct, though the sha256 digest is appended:The text was updated successfully, but these errors were encountered: