Skip to content
New issue

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

"no tag provided for image" error when using --build-artifacts flag #9422

Open
jumbosushi opened this issue May 20, 2024 · 1 comment
Open

Comments

@jumbosushi
Copy link

jumbosushi commented May 20, 2024

Expected behavior

When I use the deploy command's --build-artifacts flag, I expect it to skip the build phase and deploy smoothly

Actual behavior

I get the following error:

You either need to:
run [skaffold deploy] with [--images TAG] for each pre-built artifact
or [skaffold run] instead, to let Skaffold build, tag and deploy artifacts.
DEBU[0001] Running command: [tput colors]                subtask=-1 task=DevLoop
DEBU[0001] Command output: [8
]                          subtask=-1 task=DevLoop
no tag provided for image [<reducted>]

This error can be suppressed when you set SKAFFOLD_TAG env var. Said differently, i think the following line is preventing --build-artifacts flag to be processed without SKAFFOLD_TAG:

if artifact.Tag == "" {

Information

  • Skaffold version: v2.11.1
  • Operating system: MacOS Ventura 13.6
  • Installed via: skaffold.dev
@kevin-hanselman
Copy link
Contributor

kevin-hanselman commented Jul 30, 2024

I see similar behavior without --build-artifacts. The docs seem to imply that you can call deploy without --build-artifacts, and Skaffold will follow a sensible default procedure of rendering the manifests and then applying them. Am I misunderstanding something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants