From 740094a5b871ea4ed84cda7ec98c345d776f58f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=96=91=EC=9B=90=EC=A4=80?= <97458548+ywj9811@users.noreply.github.com> Date: Sun, 3 Mar 2024 01:00:10 +0900 Subject: [PATCH] =?UTF-8?q?RAC-304=20deploy=20:=20docker=20push=20?= =?UTF-8?q?=EB=8C=80=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD-prod.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CD-prod.yml b/.github/workflows/CD-prod.yml index c7870c62..b7115a59 100644 --- a/.github/workflows/CD-prod.yml +++ b/.github/workflows/CD-prod.yml @@ -83,6 +83,9 @@ jobs: run: | docker build -t ywj9811/kimseonbae:latest . docker push ywj9811/kimseonbae:latest + + - name: Wait for Docker image to be pushed + run: sleep 30s - name: Deploy uses: appleboy/ssh-action@master @@ -105,4 +108,4 @@ jobs: - name: Remove IP FROM security group RDS if: ${{ always() }} run: | - aws ec2 revoke-security-group-ingress --group-id ${{ secrets.AWS_RDS_SG_ID }} --protocol tcp --port 3306 --cidr ${{ steps.ip.outputs.ipv4 }}/32 \ No newline at end of file + aws ec2 revoke-security-group-ingress --group-id ${{ secrets.AWS_RDS_SG_ID }} --protocol tcp --port 3306 --cidr ${{ steps.ip.outputs.ipv4 }}/32