skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

skaffold verify should be able to build images

Open benmoss opened this issue 1 year ago • 1 comments

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 avatar Aug 23 '24 15:08 benmoss

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 avatar Aug 23 '24 15:08 benmoss