Update .gitlab-ci.yml file

This commit is contained in:
Mitra Berlian Unggas
2025-11-10 09:31:50 +00:00
parent e05db3c0c4
commit 56b75af69f
+3 -1
View File
@@ -36,7 +36,9 @@ stages:
- export AWS_ACCESS_KEY_ID=$(echo $AWS_ACCESS_KEY_ID | tr -d '\r\n')
- export AWS_SECRET_ACCESS_KEY=$(echo $AWS_SECRET_ACCESS_KEY | tr -d '\r\n')
- echo "🚀 Deploying to s3://$S3_BUCKET in region $AWS_REGION"
- aws s3 sync ./out "s3://$S3_BUCKET" --delete --region "$AWS_REGION" --endpoint-url "https://s3.ap-southeast-3.amazonaws.com"
- 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
echo "📦 Invalidating CloudFront cache..."