Skip to content

Commit

Permalink
추가: 도커 설치
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosiee committed Jul 9, 2024
1 parent cf38141 commit 71a4328
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
echo "${{ secrets.EC2_SSH_KEY }}" > key.pem
chmod 600 key.pem
ssh -o StrictHostKeyChecking=no -i key.pem -t ec2-user@${{ secrets.EC2_INSTANCE_IP }} << 'EOF'
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker pull public.ecr.aws/h7p2f6d8/ticats_ai:latest
docker-compose down
docker-compose up -d
Expand Down

0 comments on commit 71a4328

Please sign in to comment.