Skip to content

Commit 3db755c

Browse files
committed
test 2
1 parent 60b12a7 commit 3db755c

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/deploy-ecs.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,6 @@ jobs:
157157
id: login-ecr
158158
uses: aws-actions/amazon-ecr-login@v2
159159

160-
- name: DEBUG Copy Static Assets from Docker Image and Push to S3
161-
env:
162-
S3_STATIC_ASSETS_BUCKET_NAME: ${{ secrets.S3_STATIC_ASSETS_BUCKET_NAME }}
163-
ECR_REPOSITORY: ${{ inputs.ecr-repository }}
164-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
165-
run: |
166-
mkdir -p /tmp/s3static
167-
chmod 777 /tmp/s3static
168-
echo $ECR_REPOSITORY
169-
docker pull $ECR_REGISTRY/formsg:github-actions-cf0bd8d7c04e139afc56a4041448617f4c83ee2f-17069160720-1
170-
docker run --rm -v /tmp/s3static:/tmp/s3static $ECR_REGISTRY/formsg:github-actions-cf0bd8d7c04e139afc56a4041448617f4c83ee2f-17069160720-1 cp -r ./dist/frontend/. /tmp/s3static
171-
aws s3 sync /tmp/s3static s3://$S3_STATIC_ASSETS_BUCKET_NAME
172-
173160
- name: Set up Docker Buildx
174161
uses: docker/setup-buildx-action@v3
175162

@@ -221,10 +208,11 @@ jobs:
221208
env:
222209
S3_STATIC_ASSETS_BUCKET_NAME: ${{ secrets.S3_STATIC_ASSETS_BUCKET_NAME }}
223210
ECR_REPOSITORY: ${{ inputs.ecr-repository }}
211+
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
224212
run: |
225213
mkdir -p /tmp/s3static
226214
chmod 777 /tmp/s3static
227-
docker run --rm -v /tmp/s3static:/tmp/s3static $ECR_REPOSITORY:$IMAGE_TAG cp -r ./dist/frontend/. /tmp/s3static
215+
docker run --rm -v /tmp/s3static:/tmp/s3static $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG cp -r ./dist/frontend/. /tmp/s3static
228216
aws s3 sync /tmp/s3static s3://$S3_STATIC_ASSETS_BUCKET_NAME
229217
230218
- name: Deploy Amazon ECS task definition

0 commit comments

Comments
 (0)