Closed Cloud956 closed 7 months ago
hi @Cloud956 the tag
in build output file is not the one you specified with --tag
, it is a immutable image reference used for k8s deployment. This is expected. Please see https://skaffold.dev/docs/taggers/#how-tagging-works for details.
Expected behavior
The created file ( for example builds.json) should have the new tag specified with the --tag. Like this:
{"builds":[{"imageName":"streaming-hospital","tag":"streaming-hospital:test"},{"imageName":"streaming-hospital-test","tag":"streaming-hospital-test:test"}]}
When specifying the tag as "test"
Actual behavior
It outputs the automatically-generated random tag.
{"builds":[{"imageName":"streaming-hospital","tag":"streaming-hospital:b5ef5cfa04cda780d3dd21c9504aad16b329976a8a97bc6ed95dd8021036f972"},{"imageName":"streaming-hospital-test","tag":"streaming-hospital-test:79df6e18abe614acaf5a1952d97581453f1a93d7c2c374c2c2dab7161c914c2b"}]}
Information
Steps to reproduce the behavior
skaffold build --file-output builds.json --tag='test'