Skip to content

Commit 6111c83

Browse files
committed
Source args.sh before building image
To make sure we fail the release if image creation fails.
1 parent 5407131 commit 6111c83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deployment/rollout_new_release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
source args.sh
3+
source instance_group_management.sh
4+
25
TARGET="$1"
36

47
case $TARGET in
@@ -13,9 +16,6 @@ case $TARGET in
1316
exit 1
1417
esac
1518

16-
source args.sh
17-
source instance_group_management.sh
18-
1919
# Fetch latest image sha from GCR.
2020
IMAGE_SHA=$(gcloud container images list-tags $IMAGE_IN_GCR --format=yaml --limit=1 | grep -i digest | cut -d' ' -f2)
2121
IMAGE_FQN="${IMAGE_IN_GCR}@${IMAGE_SHA}"

0 commit comments

Comments
 (0)