Skip to content

Commit

Permalink
docker hub login
Browse files Browse the repository at this point in the history
  • Loading branch information
jsangmin99 committed Aug 28, 2024
1 parent 8eba013 commit 70fc426
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,10 @@ jobs:
port: 22
script: |
cd ~/want
sudo docker-compose pull
sudo docker-compose up -d
if ! type docker > /dev/null; then
sudo snap install docker || echo "docker install failed"
else
echo "docker is already installed"
fi
sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
sudo docker-compose pull && sudo docker-compose up -d

0 comments on commit 70fc426

Please sign in to comment.