@@ -215,18 +215,15 @@ retag() { # Usage: retag FROM_IMAGE_WITH_TAG TO_IMAGE_WITH_TAG
215
215
local FROM=$1 TO=$2
216
216
docker pull $FROM && docker tag $FROM $TO && docker push $TO
217
217
}
218
- retagall() {
219
- # Usage: retagall FROM_REGISTRY FROM_TAG TO_REGISTRY TO_TAG
220
- # Does not retag the deployer, you have to use "retag" directly for the
221
- # deployer.
218
+ retagall() { # Usage: retagall FROM_REGISTRY FROM_TAG TO_REGISTRY TO_TAG
222
219
local FROM=$1 TO=$2 FROM_TAG=$3 TO_TAG=$4
223
- retag $FROM:$FROM_TAG $TO:$TO_TAG
224
- retag $FROM/cert-manager-acmesolver:$FROM_TAG $TO/cert-manager-acmesolver:$TO_TAG
225
- retag $FROM/cert-manager-cainjector:$FROM_TAG $TO/cert-manager-cainjector:$TO_TAG
226
- retag $FROM/cert-manager-webhook:$FROM_TAG $TO/cert-manager-webhook:$TO_TAG
227
- retag $FROM/cert-manager-google-cas-issuer:$FROM_TAG $TO/cert-manager-google-cas-issuer:$TO_TAG
228
- retag $FROM/preflight:$FROM_TAG $TO/preflight:$TO_TAG
229
- retag gcr.io/cloud-marketplace-tools/metering/ubbagent:latest $TO/ubbagent:$TO_TAG
220
+ retag $FROM:$FROM_TAG $TO:$TO_TAG || exit 1
221
+ retag $FROM/cert-manager-acmesolver:$FROM_TAG $TO/cert-manager-acmesolver:$TO_TAG || exit 1
222
+ retag $FROM/cert-manager-cainjector:$FROM_TAG $TO/cert-manager-cainjector:$TO_TAG || exit 1
223
+ retag $FROM/cert-manager-webhook:$FROM_TAG $TO/cert-manager-webhook:$TO_TAG || exit 1
224
+ retag $FROM/cert-manager-google-cas-issuer:$FROM_TAG $TO/cert-manager-google-cas-issuer:$TO_TAG || exit 1
225
+ retag $FROM/preflight:$FROM_TAG $TO/preflight:$TO_TAG || exit 1
226
+ retag gcr.io/cloud-marketplace-tools/metering/ubbagent:latest $TO/ubbagent:$TO_TAG || exit 1
230
227
}
231
228
APP_VERSION=1.1.0-gcm.2
232
229
retagall gcr.io/jetstack-public/jetstack-secure-for-cert-manager{,} google-review $APP_VERSION
@@ -251,14 +248,14 @@ retag() { # Usage: retag FROM_IMAGE_WITH_TAG TO_IMAGE_WITH_TAG
251
248
docker pull $FROM && docker tag $FROM $TO && docker push $TO
252
249
}
253
250
retagall() { # Usage: retagall FROM_REGISTRY FROM_TAG TO_REGISTRY TO_TAG
254
- local FROM=$1 TO=$2 FROM_TAG=$3 TO_TAG=$4; local -; set -eu
255
- retag $FROM:$FROM_TAG $TO:$TO_TAG
256
- retag $FROM/cert-manager-acmesolver:$FROM_TAG $TO/cert-manager-acmesolver:$TO_TAG
257
- retag $FROM/cert-manager-cainjector:$FROM_TAG $TO/cert-manager-cainjector:$TO_TAG
258
- retag $FROM/cert-manager-webhook:$FROM_TAG $TO/cert-manager-webhook:$TO_TAG
259
- retag $FROM/cert-manager-google-cas-issuer:$FROM_TAG $TO/cert-manager-google-cas-issuer:$TO_TAG
260
- retag $FROM/preflight:$FROM_TAG $TO/preflight:$TO_TAG
261
- retag gcr.io/cloud-marketplace-tools/metering/ubbagent:latest $TO/ubbagent:$TO_TAG
251
+ local FROM=$1 TO=$2 FROM_TAG=$3 TO_TAG=$4
252
+ retag $FROM:$FROM_TAG $TO:$TO_TAG || exit 1
253
+ retag $FROM/cert-manager-acmesolver:$FROM_TAG $TO/cert-manager-acmesolver:$TO_TAG || exit 1
254
+ retag $FROM/cert-manager-cainjector:$FROM_TAG $TO/cert-manager-cainjector:$TO_TAG || exit 1
255
+ retag $FROM/cert-manager-webhook:$FROM_TAG $TO/cert-manager-webhook:$TO_TAG || exit 1
256
+ retag $FROM/cert-manager-google-cas-issuer:$FROM_TAG $TO/cert-manager-google-cas-issuer:$TO_TAG || exit 1
257
+ retag $FROM/preflight:$FROM_TAG $TO/preflight:$TO_TAG || exit 1
258
+ retag gcr.io/cloud-marketplace-tools/metering/ubbagent:latest $TO/ubbagent:$TO_TAG || exit 1
262
259
}
263
260
264
261
PROJECT=$(gcloud config get-value project | tr ' :' ' /' )
0 commit comments