Skip to content

Commit

Permalink
fix: docker not found
Browse files Browse the repository at this point in the history
  • Loading branch information
kangju2000 committed Oct 20, 2024
1 parent 1e95061 commit 5d22bcf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ jobs:
username: ec2-user
key: ${{ secrets.EC2_SSH_KEY }}
script: |
if ! command -v docker &> /dev/null
then
sudo yum update -y
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
exec sudo su -l $USER
fi
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/gachon-tools-server:latest
docker stop gachon-tools-server || true
docker rm gachon-tools-server || true
Expand Down

0 comments on commit 5d22bcf

Please sign in to comment.