Skip to content

Commit 4be1a27

Browse files
committed
Docs: explain how to cut a new release
Signed-off-by: Maël Valais <[email protected]>
1 parent 62b0742 commit 4be1a27

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

docs/TESTING-DEPLOYER.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,21 @@ you will have to run the following in order to "promote" the tester and
145145
deployer:
146146

147147
```sh
148-
BUILD_TAG=build-3dc9ba45-d23c-441c-8809-ac693054716e
149-
RELEASE_TAG=1.1.0-gcm.2
150-
while read img; do
151-
docker pull $img:$BUILD_TAG
152-
docker tag $img:{$BUILD_TAG,$RELEASE_TAG}
153-
docker push $img:$RELEASE_TAG
154-
done <<EOF
155-
gcr.io/jetstack-public/jetstack-secure-for-cert-manager/deployer
156-
gcr.io/jetstack-public/jetstack-secure-for-cert-manager/smoke-test
157-
EOF
148+
retag() {
149+
docker pull $1:$2
150+
docker tag $1:{$2,$3}
151+
docker push $1:$3
152+
}
153+
154+
retag gcr.io/jetstack-public/jetstack-secure-for-cert-manager/deployer build-3dc9ba45-d23c-441c-8809-ac693054716e 1.1
155+
retag gcr.io/jetstack-public/jetstack-secure-for-cert-manager/deployer build-3dc9ba45-d23c-441c-8809-ac693054716e 1.1.0-gcm.2
156+
retag gcr.io/jetstack-public/jetstack-secure-for-cert-manager/smoke-test build-3dc9ba45-d23c-441c-8809-ac693054716e 1.1.0-gcm.2
158157
```
159158

159+
> Note: pushing the `deployer:1.1.0-gcm.2` image is not mandatory; only the
160+
> `1.1` tag is required by the Marketplace UI. But we still push
161+
> `1.1.0-gcm.2` for debugging purposes.
162+
160163
## Testing the application without having access to the Billing API
161164

162165
Jetstack members do not have access to the Billing API. In order to test

0 commit comments

Comments
 (0)