Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit a700891

Browse files
committed
pin test builds
1 parent b5471f9 commit a700891

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

_scripts/deploy.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,21 @@ function publish() {
8888

8989
s3_sync $source $S3_URI
9090
done
91-
else
92-
# root level deploy, this only happens with stage=test (non-tagged builds)
91+
elif [[ $ASSET_STAGE == "test" ]]; then
92+
echo "PINNED VERSION: $ASSET_STAGE"
93+
version=$ASSET_STAGE
9394
S3_URI=$(s3_uri $ASSET_BUCKET $ASSET_STAGE_PATH $destination)
95+
96+
if [[ "$destination" == "templates" ]]; then
97+
# pin distribution template and artifact paths in cfn templates
98+
pin_version $version templates $source
99+
pin_version $version artifacts $source
100+
fi
101+
94102
s3_sync $source $S3_URI
103+
else
104+
echo "unknown publish target"
105+
exit 1
95106
fi
96107

97108
}

0 commit comments

Comments
 (0)