Skip to content

Commit 3e2062e

Browse files
[release-1.8] Update images tags after adding git data in gcloud (#10233)
* fix gcloud builds Signed-off-by: James Strong <[email protected]> * update reg Signed-off-by: James Strong <[email protected]> --------- Signed-off-by: James Strong <[email protected]> Co-authored-by: James Strong <[email protected]>
1 parent c07b462 commit 3e2062e

File tree

11 files changed

+4
-48
lines changed

11 files changed

+4
-48
lines changed

images/cfssl/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ TAG ?=v$(shell date +%Y%m%d)-$(SHORT_SHA)
2323

2424
REGISTRY ?= local
2525

26-
27-
2826
IMAGE = $(REGISTRY)/e2e-test-cfssl
2927

3028
# required to enable buildx

images/cfssl/cloudbuild.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ steps:
66
entrypoint: bash
77
env:
88
- DOCKER_CLI_EXPERIMENTAL=enabled
9-
- SHORT_SHA=$SHORT_SHA
10-
- BASE_REF=$_PULL_BASE_REF
119
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
1210
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
1311
# set the home to /root explicitly to if using docker buildx
@@ -17,6 +15,3 @@ steps:
1715
- |
1816
gcloud auth configure-docker \
1917
&& cd images/cfssl && make push
20-
substitutions:
21-
_GIT_TAG: "12345"
22-
_PULL_BASE_REF: "master"

images/custom-error-pages/cloudbuild.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ steps:
66
entrypoint: bash
77
env:
88
- DOCKER_CLI_EXPERIMENTAL=enabled
9-
- SHORT_SHA=$SHORT_SHA
10-
- BASE_REF=$_PULL_BASE_REF
119
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
1210
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
1311
# set the home to /root explicitly to if using docker buildx
@@ -17,6 +15,3 @@ steps:
1715
- |
1816
gcloud auth configure-docker \
1917
&& cd images/custom-error-pages && make push
20-
substitutions:
21-
_GIT_TAG: "12345"
22-
_PULL_BASE_REF: "master"

images/echo/cloudbuild.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ steps:
66
entrypoint: bash
77
env:
88
- DOCKER_CLI_EXPERIMENTAL=enabled
9-
- SHORT_SHA=$SHORT_SHA
10-
- BASE_REF=$_PULL_BASE_REF
119
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
1210
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
1311
# set the home to /root explicitly to if using docker buildx
@@ -17,6 +15,3 @@ steps:
1715
- |
1816
gcloud auth configure-docker \
1917
&& cd images/echo && make push
20-
substitutions:
21-
_GIT_TAG: "12345"
22-
_PULL_BASE_REF: "master"

images/ext-auth-example-authsvc/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ SHELL=/bin/bash -o pipefail -o errexit
1818
DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
1919
INIT_BUILDX=$(DIR)/../../hack/init-buildx.sh
2020

21-
TAG ?=v1.0.0
21+
SHORT_SHA ?=$(shell git rev-parse --short HEAD)
22+
TAG ?=v$(shell date +%Y%m%d)-$(SHORT_SHA)
23+
2224
REGISTRY ?= local
2325

2426
IMAGE = $(REGISTRY)/ext-auth-example-authsvc

images/ext-auth-example-authsvc/cloudbuild.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ steps:
88
entrypoint: bash
99
env:
1010
- DOCKER_CLI_EXPERIMENTAL=enabled
11-
- SHORT_SHA=$SHORT_SHA
12-
- BASE_REF=$_PULL_BASE_REF
1311
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
1412
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
1513
# set the home to /root explicitly to if using docker buildx
@@ -19,6 +17,3 @@ steps:
1917
- |
2018
gcloud auth configure-docker \
2119
&& cd images/ext-auth-example-authsvc && make push
22-
substitutions:
23-
_GIT_TAG: "12345"
24-
_PULL_BASE_REF: "master"

images/fastcgi-helloserver/cloudbuild.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ steps:
66
entrypoint: bash
77
env:
88
- DOCKER_CLI_EXPERIMENTAL=enabled
9-
- SHORT_SHA=$SHORT_SHA
10-
- BASE_REF=$_PULL_BASE_REF
119
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
1210
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
1311
# set the home to /root explicitly to if using docker buildx
@@ -17,6 +15,4 @@ steps:
1715
- |
1816
gcloud auth configure-docker \
1917
&& cd images/fastcgi-helloserver && make push
20-
substitutions:
21-
_GIT_TAG: "12345"
22-
_PULL_BASE_REF: "master"
18+

images/go-grpc-greeter-server/cloudbuild.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ steps:
88
entrypoint: bash
99
env:
1010
- DOCKER_CLI_EXPERIMENTAL=enabled
11-
- SHORT_SHA=$SHORT_SHA
12-
- BASE_REF=$_PULL_BASE_REF
1311
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
1412
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
1513
# set the home to /root explicitly to if using docker buildx
@@ -19,6 +17,3 @@ steps:
1917
- |
2018
gcloud auth configure-docker \
2119
&& cd images/go-grpc-greeter-server && make push
22-
substitutions:
23-
_GIT_TAG: "12345"
24-
_PULL_BASE_REF: "master"

images/httpbun/cloudbuild.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ steps:
88
entrypoint: bash
99
env:
1010
- DOCKER_CLI_EXPERIMENTAL=enabled
11-
- SHORT_SHA=$SHORT_SHA
12-
- BASE_REF=$_PULL_BASE_REF
1311
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
1412
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
1513
# set the home to /root explicitly to if using docker buildx
@@ -19,6 +17,3 @@ steps:
1917
- |
2018
gcloud auth configure-docker \
2119
&& cd images/httpbun && make push
22-
substitutions:
23-
_GIT_TAG: "12345"
24-
_PULL_BASE_REF: "master"

images/kube-webhook-certgen/cloudbuild.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ steps:
2121
entrypoint: bash
2222
env:
2323
- DOCKER_CLI_EXPERIMENTAL=enabled
24-
- SHORT_SHA=$SHORT_SHA
25-
- BASE_REF=$_PULL_BASE_REF
2624
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
2725
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
2826
# set the home to /root explicitly to if using docker buildx
@@ -32,6 +30,3 @@ steps:
3230
- |
3331
gcloud auth configure-docker \
3432
&& cd images/kube-webhook-certgen && make push
35-
substitutions:
36-
_GIT_TAG: "12345"
37-
_PULL_BASE_REF: "main"

0 commit comments

Comments
 (0)