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 deploy" should not run build before #1352

Closed
ghost opened this issue Dec 2, 2018 · 6 comments
Closed

"skaffold deploy" should not run build before #1352

ghost opened this issue Dec 2, 2018 · 6 comments
Labels
area/deploy kind/bug Something isn't working

Comments

@ghost
Copy link

ghost commented Dec 2, 2018

After upgrading skaffold to v0.19.0 skaffold deploy run build before

Expected behavior

when run skaffold deploy it should deploy without running build before. like v0.18.0

$ /usr/local/Cellar/skaffold/0.18.0/bin/skaffold deploy
Starting deploy...
kubectl client version: 1.12
deployment.apps/account-api unchanged
deployment.extensions/account-db configured
persistentvolumeclaim/account-db unchanged
secret/account-db unchanged
service/account-db unchanged
deployment.apps/account-srv unchanged
deployment.apps/auth-api unchanged
configmap/auth-db-health unchanged
deployment.apps/auth-db configured
secret/auth-db unchanged
service/auth-db unchanged
deployment.apps/auth-srv unchanged
configmap/email-db-health unchanged
deployment.apps/email-db configured
secret/email-db unchanged
service/email-db unchanged
deployment.apps/email-srv unchanged
Deploy complete in 34.528770819s
There is a new version (0.19.0) of skaffold available. Download it at https://storage.googleapis.com/skaffold/releases/latest/skaffold-darwin-amd64

Actual behavior

In skaffold v0.19.0 skaffold deploy run build before deploy

$ /usr/local/Cellar/skaffold/0.19.0/bin/skaffold deploy
Starting build...
Building [gcr.io/go-bookpub/account-api]...
Pushing code to gs://go-bookpub_cloudbuild/source/go-bookpub-06139abd6a64ca389756f622a8e70482.tar.gz

Information

  • Skaffold version: v0.19.0
  • Operating system: MacOS 10.14.1
  • Contents of skaffold.yaml:
apiVersion: skaffold/v1alpha5 # when using v0.19.0 I change it to skaffold/v1beta1
kind: Config
build:
  googleCloudBuild:
    projectId: go-bookpub
    diskSizeGb: 100
    machineType: "UNSPECIFIED"
    dockerImage: gcr.io/cloud-builders/docker
  artifacts:
  # ------------- account ------------- #
  - image: gcr.io/go-bookpub/account-api
    context: account/api/
  - image: gcr.io/go-bookpub/account-srv
    context: account/srv/
  # --------------- auth -------------- #
  - image: gcr.io/go-bookpub/auth-api
    context: auth/api/
  - image: gcr.io/go-bookpub/auth-srv
    context: auth/srv/
  # --------------- email -------------- #
  - image: gcr.io/go-bookpub/email-srv
    context: email/srv/
deploy:
  kubectl:
    manifests:
  # ------------- account ------------- #
    - account/api/deployment.yml
    - account/db/*.yml
    - account/srv/deployment.yml
  # --------------- auth -------------- #
    - auth/api/deployment.yml
    - auth/db/*.yml
    - auth/srv/deployment.yml
  # --------------- email -------------- #
    - email/db/*.yml
    - email/srv/deployment.yml
profiles:
- name: local
  build:
    local:
      push: false
      useDockerCLI: true
@dgageot dgageot added kind/bug Something isn't working area/deploy labels Dec 3, 2018
@ghost
Copy link
Author

ghost commented Dec 14, 2018

Any update?

@ghost
Copy link
Author

ghost commented Dec 16, 2018

I'm sorry for referencing this problem in my project, I don't know this will refer to this issue when I include the url of this issue on my commit message.

My stupid

@WoLfulus
Copy link

I'm having problems with this too. It breaks my pipeline.

  • I use skaffold build to build and push images
  • Test the images normally with docker run...
  • Deploy charts (in my case).

Deploy rebuilding the images (and pushing them again) invalidates my previous tests

@nkubala
Copy link
Contributor

nkubala commented Feb 5, 2019

@ahmadnurus sorry for the radio silence here. this is something we've been discussing the best way to address for a few months now, and have plans to tackle this quarter. in it's current form skaffold deploy isn't super useful, so we're aiming to fix that by essentially restructuring to have skaffold build + skaffold deploy = skaffold run.

@tejal29
Copy link
Contributor

tejal29 commented Mar 20, 2019

hmm i can add this as another task to verify when fixing #922

@tejal29
Copy link
Contributor

tejal29 commented May 7, 2019

This is fixed as part of #922

@tejal29 tejal29 closed this as completed May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deploy kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants