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