File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2121 TARGET : ${{ inputs.environment || 'staging' }}
2222 ACCT : ${{ inputs.environment == 'production' && '990880627107' || '327995277200' }}
2323 BUCKET : ${{ inputs.environment == 'production' && 'tiny-cloud-antora-docs-release' || 'tiny-cloud-antora-docs-preview' }}
24+ DISTRIBUTION : ${{ inputs.environment == 'production' && 'E3LFU502SQ5UR' || 'E7DUUPEI08HNW'}}
2425 RUN : run-${{ github.run_number }}-${{ github.run_attempt }}
2526
2627jobs :
8889 with :
8990 bucket : ${{ env.BUCKET }}
9091 folder : main
91- parallel : 20
92+ parallel : 20
93+
94+ - name : Invalidate Cloudfront Cache
95+ # sleep to wait for envoy's version pointer caching to expire
96+ run : |
97+ sleep 30s
98+ aws cloudfront create-invalidation --distribution-id ${{ env.DISTRIBUTION }} --paths "/docs/*"
99+ env :
100+ AWS_EC2_METADATA_DISABLED : true
You can’t perform that action at this time.
0 commit comments