mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
Replace CloudFront invalidation with API Gateway endpoint
This commit is contained in:
8
.github/workflows/ci-build-upload.yml
vendored
8
.github/workflows/ci-build-upload.yml
vendored
@ -119,7 +119,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
URI: ${{steps.tag-dir.outputs.URI}}
|
URI: ${{steps.tag-dir.outputs.URI}}
|
||||||
run: |
|
run: |
|
||||||
aws cloudfront create-invalidation \
|
API_STATUS=$(aws apigateway test-invoke-method --rest-api-id ${{ secrets.AWS_REST_API_ID }} --resource-id "${{ secrets.AWS_RESOURCE_ID }}" \
|
||||||
--distribution-id ${{ secrets.AWS_DISTRIBUTION_ID }} \
|
--http-method PUT --path-with-query-string "/prod/download-oo-com" --body "$(jq -c -n '.paths = $ARGS.positional' --args "${URI}/*")" \
|
||||||
--paths \
|
--region us-east-1 --query 'status' --output text || :)
|
||||||
"${URI}/*"
|
echo "API Gateway test-invoke status: ${API_STATUS:-<failed>}"
|
||||||
|
|||||||
Reference in New Issue
Block a user