From 6793e2b86be164b11dbbf91f64323e3738b88c2b Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Tue, 18 Sep 2018 11:31:38 -0400 Subject: [PATCH] Release 0.1.2 (#363) * Dockerfile for new minimal base image based on alpine (#317) * Rebuild build-base in release.sh, specify in .ko.yaml (#318) --- .ko.yaml | 4 ++-- hack/release.sh | 12 ++++++++++-- images/Dockerfile | 4 ++++ 3 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 images/Dockerfile diff --git a/.ko.yaml b/.ko.yaml index d0d81cfa..2161b44c 100644 --- a/.ko.yaml +++ b/.ko.yaml @@ -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 diff --git a/hack/release.sh b/hack/release.sh index 0ff9a9ca..8b780623 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -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 diff --git a/images/Dockerfile b/images/Dockerfile new file mode 100644 index 00000000..80e793e1 --- /dev/null +++ b/images/Dockerfile @@ -0,0 +1,4 @@ +FROM alpine:latest + +RUN apk add --update git openssh-client +