Skip to content

Commit

Permalink
RAC-304 deploy : docker push 대기
Browse files Browse the repository at this point in the history
  • Loading branch information
ywj9811 authored Mar 2, 2024
1 parent da066f5 commit 740094a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/CD-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
aws ec2 revoke-security-group-ingress --group-id ${{ secrets.AWS_RDS_SG_ID }} --protocol tcp --port 3306 --cidr ${{ steps.ip.outputs.ipv4 }}/32

0 comments on commit 740094a

Please sign in to comment.