Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Rebuild build-base in release.sh, specify in .ko.yaml (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Sep 18, 2018
1 parent cd69f25 commit c8a0d97
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .ko.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
baseImageOverrides:
github.com/knative/build/cmd/creds-init: gcr.io/cloud-builders/gcloud:latest
github.com/knative/build/cmd/git-init: gcr.io/cloud-builders/gcloud:latest
github.com/knative/build/cmd/creds-init: gcr.io/knative-releases/build-base:latest
github.com/knative/build/cmd/git-init: gcr.io/knative-releases/build-base:latest
12 changes: 10 additions & 2 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
echo "@@@@ BUILDING THE RELEASE @@@@"
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"

# Set the repository to the official one:
export KO_DOCKER_REPO=gcr.io/build-crd
# Build and push the base image for creds-init and git images.
docker build -t $BUILD_RELEASE_GCR/build-base -f images/Dockerfile images/
docker push $BUILD_RELEASE_GCR/build-base

# Set the repository
export KO_DOCKER_REPO=${BUILD_RELEASE_GCR}
# Build should not try to deploy anything, use a bogus value for cluster.
export K8S_CLUSTER_OVERRIDE=CLUSTER_NOT_SET
export K8S_USER_OVERRIDE=USER_NOT_SET
export DOCKER_REPO_OVERRIDE=DOCKER_NOT_SET

# If this is a prow job, authenticate against GCR.
(( IS_PROW )) && gcr_auth
Expand Down

0 comments on commit c8a0d97

Please sign in to comment.