Skip to content

Commit

Permalink
[#475]: deploy to swarm action update
Browse files Browse the repository at this point in the history
  • Loading branch information
Themezv committed Mar 10, 2024
1 parent 9c85792 commit 1db0e4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions .github/actions/deploy-to-s3/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ inputs:
bucket:
required: true
description: 's3 bucket to sync'
backup-bucket:
required: true
description: 's3 bucket to backup'
AWS_REGION:
required: false
description: 'AWS region'
Expand Down Expand Up @@ -44,8 +41,5 @@ runs:
shell: 'bash'
env:
PROD_CLIENT_APP_S3_BUCKET: ${{ inputs.bucket }}
PROD_CLIENT_APP_S3_BUCKET_BACKUP: ${{ inputs.backup-bucket }}
run: |
aws s3 sync s3://$PROD_CLIENT_APP_S3_BUCKET s3://$PROD_CLIENT_APP_S3_BUCKET_BACKUP --delete
aws s3 cp s3://$PROD_CLIENT_APP_S3_BUCKET/index.html s3://$PROD_CLIENT_APP_S3_BUCKET_BACKUP/index.html # aws s3 sync cant correctly invalidate index.html file
aws s3 sync ${{ inputs.path-to-folder }} s3://$PROD_CLIENT_APP_S3_BUCKET --delete
3 changes: 1 addition & 2 deletions .github/workflows/ligretto-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,5 @@ jobs:
path-to-folder: apps/ligretto-frontend/dist
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
bucket: 'lig-production-cdn-origin'
backup-bucket: 'lig-production-cdn-backup'
bucket: 'ligretto.app'

0 comments on commit 1db0e4f

Please sign in to comment.