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

Commit

Permalink
Update alpha.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Speculor authored Mar 3, 2022
1 parent edad624 commit d56d488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/alpha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ jobs:
aws-region: us-east-1

- name: Deploy static site to S3
run: ls -l && aws s3 sync . s3://alpha-alphauniversexyz-origin --delete
run: ls -l && aws s3 sync . s3://marketplace-marketplacealphauniversexyz-origin --delete

- name: Invalidate CloudFront cache
run: |
#!/usr/bin/env bash
set -eou pipefail
CF_DIST_ID=$(aws cloudfront list-distributions --query "DistributionList.Items[?Aliases.Items!=null] | [?contains(Aliases.Items, 'alpha.universe.xyz')].Id | [0]" | tr -d \")
CF_DIST_ID=$(aws cloudfront list-distributions --query "DistributionList.Items[?Aliases.Items!=null] | [?contains(Aliases.Items, 'marketplace.alpha.universe.xyz')].Id | [0]" | tr -d \")
echo "Clearing cache for ${CF_DIST_ID}..."
CF_INVALIDATION_ID=$(aws cloudfront create-invalidation --distribution-id ${CF_DIST_ID} --paths "/*" | jq -r '.Invalidation.Id')
while [ $(aws cloudfront get-invalidation --distribution-id ${CF_DIST_ID} --id ${CF_INVALIDATION_ID} | jq -r '.Invalidation.Status') != "Completed" ]; do
Expand Down

0 comments on commit d56d488

Please sign in to comment.