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 ea6b071 commit cba8db1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ jobs:
echo "rsync is already installed."
fi
if ! docker --version &> /dev/null
then
echo "Docker could not be found or is not working, installing..."
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
else
echo "Docker is already installed and working."
fi
if ! docker-compose --version &> /dev/null
then
echo "docker-compose could not be found or is not working, installing..."
Expand Down

0 comments on commit cba8db1

Please sign in to comment.