-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep track of release versions in manifest db
- Loading branch information
1 parent
33362f0
commit 17fbb40
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
.github/workflows/release_scripts/update_release_manifest.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
##The Variables below are required! | ||
|
||
#Dynamo DB URL: https://us-east-1.console.aws.amazon.com/dynamodbv2/home?region=us-east-1#item-explorer?initialTagKey=&table=solace-cloud-manifest | ||
#Example: | ||
# export AWS_ACCESS_KEY_ID=xxxxxx | ||
# export AWS_SECRET_ACCESS_KEY=xxxxx | ||
# export release_version="v100.100" | ||
# export version="v100" | ||
# export image_tag="rc-abcdef" | ||
# export chart_version="n/a" | ||
# export sha="abcdef" | ||
# export squad='mission-control' | ||
# export repository='maas-cloud-agent-k8s' | ||
# export release_tag='rc' | ||
|
||
aws dynamodb update-item \ | ||
--table-name solace-cloud-manifest \ | ||
--key "{\"squad\":{\"S\":\"${squad}\"},\"repository\": {\"S\": \"${repository}\"} }"\ | ||
--update-expression "SET ${release_tag} = :r" \ | ||
--expression-attribute-values \ | ||
"""{\":r\": | ||
{\"M\": | ||
{ | ||
\"version\":{\"S\":\"${version}\"}, | ||
\"image_tag\":{\"S\":\"${image_tag}\"}, | ||
\"chart_version\": {\"S\": \"${chart_version}\"}, | ||
\"sha\": {\"S\": \"${sha}\"}, | ||
\"release_version\": {\"S\": \"${release_version}\"} | ||
} | ||
} | ||
}""" \ | ||
--return-values ALL_NEW |