From b84d88eebaa9fa5259ee562f288d2053ad6967b8 Mon Sep 17 00:00:00 2001 From: Sylvain Ard Date: Sat, 6 Jul 2024 16:52:57 +0200 Subject: [PATCH] correction de deploy.yaml --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 81d3292..59666b7 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -52,7 +52,7 @@ jobs: INSTANCE_IDS=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=backend-instance-*" --query "Reservations[*].Instances[*].InstanceId" --output text) for INSTANCE_ID in $INSTANCE_IDS; do PUBLIC_IP=$(aws ec2 describe-instances --instance-ids $INSTANCE_ID --query "Reservations[*].Instances[*].PublicIpAddress" --output text) - ssh -o StrictHostKeyChecking=no -i C:\Users\Sylvain\.ssh\my-key-pair ec2-user@$PUBLIC_IP << 'EOF' + ssh -o StrictHostKeyChecking=no -i "C:\\Users\\Sylvain\\.ssh\\my-key-pair" ec2-user@$PUBLIC_IP << 'EOF' aws ecr get-login-password --region us-east-1 | sudo docker login --username AWS --password-stdin $ECR_REGISTRY sudo docker pull $ECR_REGISTRY/hello-world:latest sudo docker run -d -p 80:8080 $ECR_REGISTRY/hello-world:latest