mirror of
https://github.com/kasmtech/kasm-install-wizard.git
synced 2026-07-17 16:35:08 +00:00
KASM-8264 Retrieve updated list.json when merging to releases
This commit is contained in:
parent
34e43330c1
commit
1ffc4f955f
1 changed files with 9 additions and 0 deletions
|
|
@ -22,6 +22,15 @@ push_to_s3:
|
|||
script:
|
||||
- apk add aws-cli curl gzip tar
|
||||
- export S3_URL="https://${S3_BUCKET}.s3.amazonaws.com/wizard/${CI_COMMIT_SHA}.tar.gz"
|
||||
- |
|
||||
if echo "$CI_COMMIT_REF_NAME" | grep -qE '^release/'; then
|
||||
if curl -fsSL https://registry.kasmweb.com/1.1/list.json -o list.json.tmp; then
|
||||
mv list.json.tmp list.json
|
||||
else
|
||||
echo "Failed to fetch list.json, using committed version"
|
||||
rm -f list.json.tmp
|
||||
fi
|
||||
fi
|
||||
- tar -czf ${CI_COMMIT_SHA}.tar.gz *
|
||||
- aws s3 cp ${CI_COMMIT_SHA}.tar.gz s3://${S3_BUCKET}/wizard/
|
||||
- aws s3 cp ${CI_COMMIT_SHA}.tar.gz s3://${S3_BUCKET}/wizard/${SANITIZED_BRANCH}.tar.gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue