diff --git a/Makefile b/Makefile index 1f6a11adf21..476cbef04eb 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,10 @@ BUILD_PACKAGE = $(REPOPATH)/cmd/skaffold VERSION_PACKAGE = $(REPOPATH)/pkg/skaffold/version COMMIT = $(shell git rev-parse HEAD) -VERSION ?= $(shell git describe --always --tags --dirty) + +ifeq "$(strip $(VERSION))" "" + override VERSION = $(shell git describe --always --tags --dirty) +endif GO_GCFLAGS := "all=-trimpath=${PWD}" GO_ASMFLAGS := "all=-trimpath=${PWD}" @@ -97,6 +100,7 @@ release: cross $(BUILD_DIR)/VERSION -f deploy/skaffold/Dockerfile \ --cache-from gcr.io/$(GCP_PROJECT)/skaffold-builder \ --build-arg VERSION=$(VERSION) \ + -t gcr.io/$(GCP_PROJECT)/skaffold:latest \ -t gcr.io/$(GCP_PROJECT)/skaffold:$(VERSION) . gsutil -m cp $(BUILD_DIR)/$(PROJECT)-* $(GSC_RELEASE_PATH)/ gsutil -m cp $(BUILD_DIR)/VERSION $(GSC_RELEASE_PATH)/VERSION @@ -119,7 +123,7 @@ release-build: cross docker build \ -f deploy/skaffold/Dockerfile \ --cache-from gcr.io/$(GCP_PROJECT)/skaffold-builder \ - -t gcr.io/$(GCP_PROJECT)/skaffold:latest \ + -t gcr.io/$(GCP_PROJECT)/skaffold:edge \ -t gcr.io/$(GCP_PROJECT)/skaffold:$(COMMIT) . gsutil -m cp $(BUILD_DIR)/$(PROJECT)-* $(GSC_BUILD_PATH)/ gsutil -m cp -r $(GSC_BUILD_PATH)/* $(GSC_BUILD_LATEST) diff --git a/deploy/cloudbuild-release.yaml b/deploy/cloudbuild-release.yaml index 240ea0445c9..94541bbd508 100644 --- a/deploy/cloudbuild-release.yaml +++ b/deploy/cloudbuild-release.yaml @@ -37,6 +37,7 @@ steps: images: - 'gcr.io/$PROJECT_ID/skaffold-builder:latest' +- 'gcr.io/$PROJECT_ID/skaffold:latest' - 'gcr.io/$PROJECT_ID/skaffold:$TAG_NAME' options: diff --git a/deploy/cloudbuild.yaml b/deploy/cloudbuild.yaml index 99d34f636a6..3111bd999ed 100644 --- a/deploy/cloudbuild.yaml +++ b/deploy/cloudbuild.yaml @@ -36,7 +36,7 @@ steps: images: - 'gcr.io/$PROJECT_ID/skaffold-builder:latest' -- 'gcr.io/$PROJECT_ID/skaffold:latest' +- 'gcr.io/$PROJECT_ID/skaffold:edge' - 'gcr.io/$PROJECT_ID/skaffold:$COMMIT_SHA' options: diff --git a/docs/content/en/docs/getting-started/_index.md b/docs/content/en/docs/getting-started/_index.md index 016fb336ab5..ab286940aa1 100644 --- a/docs/content/en/docs/getting-started/_index.md +++ b/docs/content/en/docs/getting-started/_index.md @@ -121,11 +121,30 @@ For the latest **stable** release download and place it in your `PATH` as `skaff https://storage.googleapis.com/skaffold/releases/latest/skaffold-windows-amd64.exe +### Bleeding edge binary + For the latest **bleeding edge** build, download and place it in your `PATH` as `skaffold.exe`: https://storage.googleapis.com/skaffold/builds/latest/skaffold-windows-amd64.exe {{% /tab %}} + +{{% tab "DOCKER" %}} + +### Stable binary + +For the latest **stable** release, you can use: + +`docker run gcr.io/k8s-skaffold/skaffold:latest skaffold ` + +### Bleeding edge binary + +For the latest **bleeding edge** build: + +`docker run gcr.io/k8s-skaffold/skaffold:edge skaffold ` + +{{% /tab %}} + {{% /tabs %}} ## Downloading the sample app