Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy to all hosts in ASG #50

Merged
merged 8 commits into from
Oct 25, 2023
Merged

deploy to all hosts in ASG #50

merged 8 commits into from
Oct 25, 2023

Conversation

khaledez
Copy link
Contributor

@khaledez khaledez commented Oct 25, 2023

This PR deploys to all hosts in AWS ASG in parallel

@khaledez khaledez changed the title test matrix deploy to all hosts in ASG Oct 25, 2023
run: |
for ip in ${{ steps.get_instance_ips.outputs.ips }}
do
ssh -i ${{ secrets.DEPLOYMENT_KEY }} -o StrictHostKeyChecking=no github@$ip "docker compose -f docker-compose-prod.yml up -d"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't do like this, because docker-compose-prod.yml file is not copied in ec2 instance

@SarahAbuirmeileh SarahAbuirmeileh merged commit e5c5f6c into dev Oct 25, 2023
3 checks passed
@khaledez khaledez deleted the test-matrix branch October 25, 2023 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants