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

Commit

Permalink
Release 0.1.2 (#363)
Browse files Browse the repository at this point in the history
* Dockerfile for new minimal base image based on alpine (#317)

* Rebuild build-base in release.sh, specify in .ko.yaml (#318)
  • Loading branch information
imjasonh authored and mattmoor committed Sep 18, 2018
1 parent 5c1d8c8 commit 6793e2b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .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
12 changes: 10 additions & 2 deletions hack/release.sh
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
4 changes: 4 additions & 0 deletions images/Dockerfile
@@ -0,0 +1,4 @@
FROM alpine:latest

RUN apk add --update git openssh-client

0 comments on commit 6793e2b

Please sign in to comment.