-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GCB config to build defaultbackend (#2125)
Uses Google Container Builder to build and push the defaultbackend image. This will be used for automated builds of Kubernetes addon images.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
timeout: 10800s | ||
|
||
substitutions: | ||
{ "_ARCH": "amd64", | ||
"_REGISTRY": "gcr.io/k8s-image-staging", | ||
"_TAG": "1.4" } | ||
|
||
steps: | ||
- name: gcr.io/cloud-builders/git | ||
id: git-clone | ||
entrypoint: bash | ||
args: | ||
- "-c" | ||
- | | ||
set -ex | ||
mkdir -p /workspace/src/k8s.io | ||
cd /workspace/src/k8s.io | ||
git clone https://github.com/kubernetes/ingress-nginx.git | ||
- name: gcr.io/cloud-builders/go:debian | ||
id: make-server | ||
entrypoint: bash | ||
dir: "/workspace/src/k8s.io/ingress-nginx/images/404-server" | ||
env: | ||
- "GOPATH=/workspace/" | ||
args: | ||
- "-c" | ||
- | | ||
set -ex | ||
ARCH=${_ARCH} make server | ||
- name: gcr.io/cloud-builders/docker | ||
id: docker-build | ||
entrypoint: bash | ||
dir: "/workspace/src/k8s.io/ingress-nginx/images/404-server" | ||
args: | ||
- "-c" | ||
- | | ||
set -e | ||
docker build -t ${_REGISTRY}/defaultbackend-${_ARCH}:${_TAG} . | ||
images: | ||
- "${_REGISTRY}/defaultbackend-${_ARCH}:${_TAG}" |