mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
Fix restock doing cf invalidations in bottle step
This commit is contained in:
parent
fae90ff2c7
commit
86e5a6d559
1 changed files with 4 additions and 4 deletions
8
.github/workflows/pkg-platform.yml
vendored
8
.github/workflows/pkg-platform.yml
vendored
|
@ -175,14 +175,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
URL: s3://${{ secrets.AWS_S3_BUCKET }}/${{ env.PREFIX }}
|
URL: s3://${{ secrets.AWS_S3_BUCKET }}/${{ env.PREFIX }}
|
||||||
id: put
|
id: put
|
||||||
if: ${{ ! inputs.dry-run }}
|
if: !inputs.dry-run
|
||||||
|
|
||||||
- name: invalidate cloudfront
|
- name: invalidate cloudfront
|
||||||
run: aws cloudfront create-invalidation
|
run: aws cloudfront create-invalidation
|
||||||
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
|
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
|
||||||
--paths
|
--paths
|
||||||
${{ steps.put.outputs.cf-paths }}
|
${{ steps.put.outputs.cf-paths }}
|
||||||
if: ${{ ! inputs.dry-run }}
|
if: !inputs.dry-run && inputs.invalidate-cloudfront
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: publish ${{inputs.tinyname}} ${{ inputs.dry-run && '(dry-run)' }}
|
name: publish ${{inputs.tinyname}} ${{ inputs.dry-run && '(dry-run)' }}
|
||||||
|
@ -218,14 +218,14 @@ jobs:
|
||||||
|
|
||||||
- name: s3 put
|
- name: s3 put
|
||||||
run: aws s3 cp versions.txt s3://${{ secrets.AWS_S3_BUCKET }}/$DIRNAME/versions.txt
|
run: aws s3 cp versions.txt s3://${{ secrets.AWS_S3_BUCKET }}/$DIRNAME/versions.txt
|
||||||
if: ${{ ! inputs.dry-run }}
|
if: !inputs.dry-run
|
||||||
|
|
||||||
- name: invalidate cloudfront
|
- name: invalidate cloudfront
|
||||||
run: aws cloudfront create-invalidation
|
run: aws cloudfront create-invalidation
|
||||||
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
|
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
|
||||||
--paths
|
--paths
|
||||||
/$DIRNAME/versions.txt
|
/$DIRNAME/versions.txt
|
||||||
if: ${{ ! inputs.dry-run && inputs.invalidate-cloudfront }}
|
if: inputs.invalidate-cloudfront && !inputs.dry-run
|
||||||
|
|
||||||
complain:
|
complain:
|
||||||
needs: bottle
|
needs: bottle
|
||||||
|
|
Loading…
Reference in a new issue