After upgrading skaffold to v0.19.0 skaffold deploy run build before
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
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
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
Any update?
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
I'm having problems with this too. It breaks my pipeline.
skaffold build to build and push imagesdocker run...Deploy rebuilding the images (and pushing them again) invalidates my previous tests
@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.
hmm i can add this as another task to verify when fixing #922
This is fixed as part of #922
Most helpful comment
@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 deployisn't super useful, so we're aiming to fix that by essentially restructuring to haveskaffold build+skaffold deploy=skaffold run.