Skip to content
Snippets Groups Projects
Commit 96e02580 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

cache-invalidering

parent 4c09ebdd
No related branches found
No related tags found
No related merge requests found
...@@ -24,3 +24,8 @@ deploy: ...@@ -24,3 +24,8 @@ deploy:
- aws cloudformation deploy --stack-name ${STACK_NAME} --template-file "aws/beta.ordbok.uib.no_stack.yaml" --parameter-overrides "CertificateArn=${CERT_ARN}" --no-fail-on-empty-changeset - aws cloudformation deploy --stack-name ${STACK_NAME} --template-file "aws/beta.ordbok.uib.no_stack.yaml" --parameter-overrides "CertificateArn=${CERT_ARN}" --no-fail-on-empty-changeset
- aws s3 rm "s3://${STACK_NAME}.aws.uib.no" --recursive - aws s3 rm "s3://${STACK_NAME}.aws.uib.no" --recursive
- aws s3 sync dist/ "s3://${STACK_NAME}.aws.uib.no" --delete - aws s3 sync dist/ "s3://${STACK_NAME}.aws.uib.no" --delete
- DISTRO_ID=$(aws cloudformation describe-stack-resource
--stack-name ${STACK_NAME}
--logical-resource-id Distribution
--query 'StackResourceDetail.PhysicalResourceId' | jq -r)
- aws cloudfront create-invalidation --distribution-id ${DISTRO_ID} --paths "/*"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment