Skip to content

Commit e783aa8

Browse files
sbueringerk8s-ci-robot
authored andcommitted
Add release process for staging images (#460)
* Re-sync controller implementation with CAPA, Fix cloud config indent bug, also copy addons to examples output folder, Re-sync makefile * fixup * fixup
1 parent e5b060a commit e783aa8

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

cloudbuild.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See https://cloud.google.com/cloud-build/docs/build-config
2+
timeout: 1200s
3+
options:
4+
substitution_option: ALLOW_LOOSE
5+
steps:
6+
- name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20190906-745fed4'
7+
entrypoint: make
8+
env:
9+
- DOCKER_CLI_EXPERIMENTAL=enabled
10+
- TAG=$_GIT_TAG
11+
- ADDITIONAL_TAG=$_PULL_BASE_REF
12+
args:
13+
- release-staging
14+
substitutions:
15+
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
16+
# can be used as a substitution
17+
_GIT_TAG: '12345'
18+
_PULL_BASE_REF: 'dev'

examples/generate.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ echo "Generated ${MACHINEDEPLOYMENT_GENERATED_FILE}"
213213
cp ${SOURCE_DIR}/addons.yaml "${ADDONS_GENERATED_FILE}"
214214
echo "Generated ${ADDONS_GENERATED_FILE}"
215215

216+
cp ${SOURCE_DIR}/addons.yaml "${ADDONS_GENERATED_FILE}"
217+
echo "Generated ${ADDONS_GENERATED_FILE}"
218+
216219
# Generate Cluster API provider components file.
217220
kustomize build "github.com/kubernetes-sigs/cluster-api/config/default/?ref=master" > "${COMPONENTS_CLUSTER_API_GENERATED_FILE}"
218221
echo "Generated ${COMPONENTS_CLUSTER_API_GENERATED_FILE}"

0 commit comments

Comments
 (0)