You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: I have one GCR, three clusters for 3 different environments (dev, staging, prod).
In CI, I build the image using skaffold build -q > build.out
-> images are tagged with gitCommitSha.
In CD, I deploy the images using skaffold deploy -a build.out using kustomize deploy.
I have an environment variable that tells me what to deploy (DEV, STG, PROD)
-> once deployed to dev: add a tag dev to the images
-> once deployed to staging: add a tag staging to the images
-> once deployed to prod: add a tag prod to the images
I cannot seem to find a way to do that automatically.
The only workaround i can think of is to parse the build.out after skaffold deploy succeed, and go one by one set the tags.
Any better idea or native way of doing that with skaffold?
The text was updated successfully, but these errors were encountered:
the second option here wouldn't be identical to what you're describing, since the tag would happen before the deploy phase (instead of after). would this be sufficient?
it's worth noting that both of these features will likely be implemented at some point in skaffold. since they're both being tracked in separate issues, i'll close this one for now (though feel free to continue the discussion here).
Hi,
Context: I have one GCR, three clusters for 3 different environments (dev, staging, prod).
In CI, I build the image using
skaffold build -q > build.out
-> images are tagged with gitCommitSha.
In CD, I deploy the images using
skaffold deploy -a build.out
using kustomize deploy.I have an environment variable that tells me what to deploy (DEV, STG, PROD)
-> once deployed to dev: add a tag
dev
to the images-> once deployed to staging: add a tag
staging
to the images-> once deployed to prod: add a tag
prod
to the imagesI cannot seem to find a way to do that automatically.
The only workaround i can think of is to parse the build.out after
skaffold deploy
succeed, and go one by one set the tags.Any better idea or native way of doing that with skaffold?
The text was updated successfully, but these errors were encountered: