Update .gitlab-ci.yml file

This commit is contained in:
kris
2025-11-10 08:52:09 +00:00
parent f761a12137
commit f2c581fcc2
+4 -1
View File
@@ -33,7 +33,10 @@ stages:
script: script:
- aws --version - aws --version
- echo "🚀 Deploying to s3://$S3_BUCKET in region $AWS_REGION" - echo "🚀 Deploying to s3://$S3_BUCKET in region $AWS_REGION"
- aws s3 sync ./out "s3://$S3_BUCKET" --delete --region "$AWS_REGION" - >
aws s3 sync ./out "s3://$S3_BUCKET" --delete \
--region "$AWS_REGION" \
--endpoint-url "https://s3.ap-southeast-3.amazonaws.com"
- | - |
if [ -n "$CLOUDFRONT_DISTRIBUTION_ID" ]; then if [ -n "$CLOUDFRONT_DISTRIBUTION_ID" ]; then
echo "📦 Invalidating CloudFront cache..." echo "📦 Invalidating CloudFront cache..."