|
2 | 2 | timeout: 1800s
|
3 | 3 | options:
|
4 | 4 | substitution_option: ALLOW_LOOSE
|
5 |
| - machineType: 'N1_HIGHCPU_32' |
| 5 | + machineType: "E2_HIGHCPU_32" |
6 | 6 | steps:
|
7 |
| -# Push the images |
8 |
| -- name: 'docker.io/library/golang:1.23.5-bookworm' |
9 |
| - id: images |
10 |
| - entrypoint: make |
11 |
| - env: |
12 |
| - # _GIT_TAG is not a valid semver, we use CI=1 instead |
13 |
| - # - VERSION=$_GIT_TAG |
14 |
| - - CI=$_CI |
15 |
| - - PULL_BASE_REF=$_PULL_BASE_REF |
16 |
| - - DOCKER_REGISTRY=$_DOCKER_REGISTRY |
17 |
| - - DOCKER_IMAGE_PREFIX=$_DOCKER_IMAGE_PREFIX |
18 |
| - args: |
19 |
| - - kops-utils-cp-push |
20 |
| - - kops-controller-push |
21 |
| - - dns-controller-push |
22 |
| - - kube-apiserver-healthcheck-push |
23 |
| -# Push the artifacts |
24 |
| -- name: 'docker.io/library/golang:1.23.5-bookworm' |
25 |
| - id: artifacts |
26 |
| - entrypoint: make |
27 |
| - env: |
28 |
| - # _GIT_TAG is not a valid semver, we use CI=1 instead |
29 |
| - # - VERSION=$_GIT_TAG |
30 |
| - - CI=$_CI |
31 |
| - - PULL_BASE_REF=$_PULL_BASE_REF |
32 |
| - - DOCKER_REGISTRY=$_DOCKER_REGISTRY |
33 |
| - - DOCKER_IMAGE_PREFIX=$_DOCKER_IMAGE_PREFIX |
34 |
| - - GCS_LOCATION=$_GCS_LOCATION |
35 |
| - - LATEST_FILE=markers/${_PULL_BASE_REF}/latest-ci.txt |
36 |
| - args: |
37 |
| - - gcs-upload-and-tag |
38 |
| -# Build cloudbuild artifacts (for attestation) |
39 |
| -- name: 'docker.io/library/golang:1.23.5-bookworm' |
40 |
| - id: cloudbuild-artifacts |
41 |
| - entrypoint: make |
42 |
| - env: |
43 |
| - # _GIT_TAG is not a valid semver, we use CI=1 instead |
44 |
| - # - VERSION=$_GIT_TAG |
45 |
| - - CI=$_CI |
46 |
| - - PULL_BASE_REF=$_PULL_BASE_REF |
47 |
| - - DOCKER_REGISTRY=$_DOCKER_REGISTRY |
48 |
| - - DOCKER_IMAGE_PREFIX=$_DOCKER_IMAGE_PREFIX |
49 |
| - - GCS_LOCATION=$_GCS_LOCATION |
50 |
| - - LATEST_FILE=markers/${_PULL_BASE_REF}/latest-ci.txt |
51 |
| - args: |
52 |
| - - cloudbuild-artifacts |
| 7 | + # Push the images |
| 8 | + - name: "mirror.gcr.io/library/golang:1.24.1-bookworm" |
| 9 | + id: images |
| 10 | + entrypoint: make |
| 11 | + env: |
| 12 | + # _GIT_TAG is not a valid semver, we use CI=1 instead |
| 13 | + # - VERSION=$_GIT_TAG |
| 14 | + - CI=$_CI |
| 15 | + - PULL_BASE_REF=$_PULL_BASE_REF |
| 16 | + - DOCKER_REGISTRY=$_DOCKER_REGISTRY |
| 17 | + - DOCKER_IMAGE_PREFIX=$_DOCKER_IMAGE_PREFIX |
| 18 | + args: |
| 19 | + - kops-utils-cp-push |
| 20 | + - kops-controller-push |
| 21 | + - dns-controller-push |
| 22 | + - kube-apiserver-healthcheck-push |
| 23 | + # Push the artifacts |
| 24 | + - name: "mirror.gcr.io/library/golang:1.24.1-bookworm" |
| 25 | + id: artifacts |
| 26 | + entrypoint: make |
| 27 | + env: |
| 28 | + # _GIT_TAG is not a valid semver, we use CI=1 instead |
| 29 | + # - VERSION=$_GIT_TAG |
| 30 | + - CI=$_CI |
| 31 | + - PULL_BASE_REF=$_PULL_BASE_REF |
| 32 | + - DOCKER_REGISTRY=$_DOCKER_REGISTRY |
| 33 | + - DOCKER_IMAGE_PREFIX=$_DOCKER_IMAGE_PREFIX |
| 34 | + - GCS_LOCATION=$_GCS_LOCATION |
| 35 | + - LATEST_FILE=markers/${_PULL_BASE_REF}/latest-ci.txt |
| 36 | + args: |
| 37 | + - gcs-upload-and-tag |
| 38 | + # Build cloudbuild artifacts (for attestation) |
| 39 | + - name: "mirror.gcr.io/library/golang:1.24.1-bookworm" |
| 40 | + id: cloudbuild-artifacts |
| 41 | + entrypoint: make |
| 42 | + env: |
| 43 | + # _GIT_TAG is not a valid semver, we use CI=1 instead |
| 44 | + # - VERSION=$_GIT_TAG |
| 45 | + - CI=$_CI |
| 46 | + - PULL_BASE_REF=$_PULL_BASE_REF |
| 47 | + - DOCKER_REGISTRY=$_DOCKER_REGISTRY |
| 48 | + - DOCKER_IMAGE_PREFIX=$_DOCKER_IMAGE_PREFIX |
| 49 | + - GCS_LOCATION=$_GCS_LOCATION |
| 50 | + - LATEST_FILE=markers/${_PULL_BASE_REF}/latest-ci.txt |
| 51 | + args: |
| 52 | + - cloudbuild-artifacts |
53 | 53 | substitutions:
|
54 | 54 | # _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
|
55 | 55 | # can be used as a substitution
|
56 |
| - _CI: '1' |
57 |
| - _GIT_TAG: '12345' |
58 |
| - _PULL_BASE_REF: 'dev' |
59 |
| - _DOCKER_REGISTRY: 'gcr.io' |
60 |
| - _DOCKER_IMAGE_PREFIX: 'k8s-staging-kops/' |
61 |
| - _GCS_LOCATION: 'gs://k8s-staging-kops/kops/releases/' |
| 56 | + _CI: "1" |
| 57 | + _GIT_TAG: "12345" |
| 58 | + _PULL_BASE_REF: "dev" |
| 59 | + _DOCKER_REGISTRY: "gcr.io" |
| 60 | + _DOCKER_IMAGE_PREFIX: "k8s-staging-kops/" |
| 61 | + _GCS_LOCATION: "gs://k8s-staging-kops/kops/releases/" |
62 | 62 | artifacts:
|
63 | 63 | objects:
|
64 |
| - location: '$_GCS_LOCATION/$_GIT_TAG/cloudbuild/' |
| 64 | + location: "$_GCS_LOCATION/$_GIT_TAG/cloudbuild/" |
65 | 65 | paths: ["cloudbuild/*"]
|
0 commit comments