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

skaffold verify should be able to build images #9506

Open
benmoss opened this issue Aug 23, 2024 · 1 comment
Open

skaffold verify should be able to build images #9506

benmoss opened this issue Aug 23, 2024 · 1 comment

Comments

@benmoss
Copy link

benmoss commented Aug 23, 2024

Expected behavior

I can run skaffold verify and it builds and/or uses prebuilt images already cached

Actual behavior

skaffold verify errors out with ErrImagePull unless you provide --build-artifacts

Information

  • Skaffold version: v2.13.2
  • Operating system: OSX 14.6.1
  • Installed via: Homebrew
  • Contents of skaffold.yaml:
apiVersion: skaffold/v4beta11
kind: Config
build:
  artifacts:
    - image: bootstrap
      docker: {}
verify:
- name: bootstrap
  container:
    name: bootstrap
    image: bootstrap

Dockerfile:

FROM hello-world:latest

Steps to reproduce the behavior

  1. a clonable repository with the sample skaffold project
  2. skaffold verify
@benmoss
Copy link
Author

benmoss commented Aug 23, 2024

I should note actually it doesn't build either with the kubernetesCluster or local execution modes, but with local you get the error

Error response from daemon: pull access denied for bootstrap, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

@benmoss benmoss changed the title skaffold verify requires explicit build artifacts skaffold verify should be able to build images Aug 23, 2024
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

1 participant