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

Commit

Permalink
pin test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
wleepang committed Oct 26, 2020
1 parent b5471f9 commit a700891
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions _scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,21 @@ function publish() {

s3_sync $source $S3_URI
done
else
# root level deploy, this only happens with stage=test (non-tagged builds)
elif [[ $ASSET_STAGE == "test" ]]; then
echo "PINNED VERSION: $ASSET_STAGE"
version=$ASSET_STAGE
S3_URI=$(s3_uri $ASSET_BUCKET $ASSET_STAGE_PATH $destination)

if [[ "$destination" == "templates" ]]; then
# pin distribution template and artifact paths in cfn templates
pin_version $version templates $source
pin_version $version artifacts $source
fi

s3_sync $source $S3_URI
else
echo "unknown publish target"
exit 1
fi

}
Expand Down

0 comments on commit a700891

Please sign in to comment.