Skip to content

Commit

Permalink
chore:CD
Browse files Browse the repository at this point in the history
  • Loading branch information
codernesty committed Aug 22, 2024
1 parent b92df09 commit 4af7388
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
if aws apprunner update-service \
--service-arn "$SERVICE_ARN" \
--source-configuration "$(cat <<EOF
--source-configuration "$(cat <<'EOF'
{
"CodeRepository": {
"RepositoryUrl": "${{ secrets.REPOSITORY_URL }}",
Expand Down Expand Up @@ -118,8 +118,8 @@ jobs:
# Step 7: Deploy to S3
- name: Replace S3 bucket contents
run: |
aws s3 rm s3://${{ secrets.S3_BUCKET }} --recursive
aws s3 cp frontend/build s3://${{ secrets.S3_BUCKET }} --recursive
aws s3 rm s3://${{ secrets.S3_BUCKET }}/build --recursive
aws s3 cp frontend/build s3://${{ secrets.S3_BUCKET }}/build --recursive
# Step 8: Invalidate CloudFront cache
- name: Invalidate CloudFront cache
Expand All @@ -133,4 +133,4 @@ jobs:
with:
path:
frontend/node_modules/
key: deploy-${{ github.sha }}-${{ hashFiles('frontend/package-lock.json') }}-${{ hashFiles('linguaphoto/requirements.txt') }}
key: deploy-${{ github.sha }}-${{ hashFiles('frontend/package-lock.json') }}-${{ hashFiles('linguaphoto/requirements.txt') }}

0 comments on commit 4af7388

Please sign in to comment.