Skip to content

Commit

Permalink
feat: fix install docker in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoglme committed Jan 22, 2024
1 parent 99396ba commit ea6b071
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,14 @@ jobs:
echo "rsync is already installed."
fi
if ! command -v docker-compose &> /dev/null
if ! docker-compose --version &> /dev/null
then
echo "docker-compose could not be found, installing..."
echo "docker-compose could not be found or is not working, installing..."
sudo rm -f /usr/local/bin/docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/v2.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
else
echo "docker-compose is already installed."
echo "docker-compose is already installed and working."
fi
echo "Starting deployment..."
Expand Down

0 comments on commit ea6b071

Please sign in to comment.