Skip to content

Commit

Permalink
Update DeployEcsProd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tzafrirhn authored Apr 4, 2024
1 parent f047bbb commit 2e988b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/DeployEcsProd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Download older versions
run: |
aws s3 sync s3://igpublisher-static-prod ./webroot/core --region eu-west-1
aws s3 sync s3://igpublisher-static-prod ./webroot --region eu-west-1
- name: Build, tag, and push image to Amazon ECR
id: build-image
Expand Down Expand Up @@ -103,11 +103,11 @@ jobs:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: ${{ env.ECS_SERVICE }}
cluster: ${{ env.ECS_CLUSTER }}
wait-for-service-stability: true
wait-for-service-stability: false

- name: Copy version to S3
run: |
docker run -d --name backup igpublisher
docker cp backup:/var/www/html /tmp/S3
find /tmp/S3 -maxdepth 1 -type f -delete
docker cp backup:/var/www/html /tmp/S3/core
docker cp backup:/tmp/S3 /tmp/S3/
aws s3 sync /tmp/S3 s3://igpublisher-static-prod --region eu-west-1

0 comments on commit 2e988b9

Please sign in to comment.