From 554cad0d8f01c52f50f75210857a4f31c3a9b2df Mon Sep 17 00:00:00 2001 From: leesj <138199219+leesj000603@users.noreply.github.com> Date: Sat, 26 Oct 2024 17:34:13 +0900 Subject: [PATCH] Update rankit-multiaz-cicd.yml --- .github/workflows/rankit-multiaz-cicd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rankit-multiaz-cicd.yml b/.github/workflows/rankit-multiaz-cicd.yml index d131e4b..0dc5b3e 100644 --- a/.github/workflows/rankit-multiaz-cicd.yml +++ b/.github/workflows/rankit-multiaz-cicd.yml @@ -36,7 +36,7 @@ jobs: echo "$SSH_PRIVATE_KEY" > private_key.pem chmod 600 private_key.pem ssh -o StrictHostKeyChecking=no -i private_key.pem ec2-user@$BASTION_HOST << 'EOF' - ssh -o StrictHostKeyChecking=no -i /home/ec2-user/my-key.pem ec2-user@${{ secrets.EC2_A_ID }} << 'INNER_EOF' + ssh -o StrictHostKeyChecking=no -i /home/ec2-user/my-key.pem ec2-user@${{ secrets.EC2_A_IP }} << 'INNER_EOF' if [ $(docker-compose ps -q app | xargs -r docker inspect -f '{{.State.Running}}') == 'true' ]; then docker-compose stop; fi @@ -81,7 +81,7 @@ jobs: echo "$SSH_PRIVATE_KEY" > private_key.pem chmod 600 private_key.pem ssh -o StrictHostKeyChecking=no -i private_key.pem ec2-user@$BASTION_HOST << 'EOF' - ssh -o StrictHostKeyChecking=no -i /home/ec2-user/my-key.pem ec2-user@${{ secrets.EC2_C_ID }} << 'INNER_EOF' + ssh -o StrictHostKeyChecking=no -i /home/ec2-user/my-key.pem ec2-user@${{ secrets.EC2_C_IP }} << 'INNER_EOF' if [ $(docker-compose ps -q app | xargs -r docker inspect -f '{{.State.Running}}') == 'true' ]; then docker-compose stop; fi