Skip to content

Commit

Permalink
correction de deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainArd committed Jul 6, 2024
1 parent 0d79c8a commit b84d88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b84d88e

Please # to comment.