mirror of
https://github.com/ivabus/gui
synced 2025-06-07 15:50:27 +03:00
#11 add preview on invalidate
This commit is contained in:
parent
5c9e61ba36
commit
9ef9febc61
1 changed files with 2 additions and 4 deletions
6
.github/create-invalidate-preview.sh
vendored
6
.github/create-invalidate-preview.sh
vendored
|
@ -11,6 +11,7 @@ echo $(aws cloudfront list-distributions --output json) >> ./test.json
|
|||
|
||||
data=$(cat ./test.json)
|
||||
distribution_id="NONE"
|
||||
domain=""
|
||||
for row in $(jq '.DistributionList.Items[] | @base64' < './test.json'); do
|
||||
_jq() {
|
||||
echo $row | tr -d '"' | base64 --decode | jq -r "${1}" | tr -d '"'
|
||||
|
@ -19,13 +20,10 @@ for row in $(jq '.DistributionList.Items[] | @base64' < './test.json'); do
|
|||
if [[ $comment = $prefix ]]
|
||||
then
|
||||
distribution_id=$(_jq '.Id')
|
||||
domain=$(_jq '.DomainName')
|
||||
fi
|
||||
done
|
||||
|
||||
# echo $distribution_id
|
||||
|
||||
domain=""
|
||||
|
||||
if [[ $distribution_id = NONE ]]
|
||||
then
|
||||
# config vars: TargetOriginId, Origin.Items.Id, Origin.Items.OriginPath, CallerReference, Comment
|
||||
|
|
Loading…
Reference in a new issue