Skip to content

Commit

Permalink
Modifico instalación de Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
martinchogimenez committed Apr 17, 2024
1 parent 3e68710 commit 158589b
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/CI_Proveedores-QA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,23 @@ jobs:
uses: actions/checkout@v2

- name: Install Docker
run:
if ! command -v docker > /dev/null; then
sudo yum install docker -y
else
echo "docker is installed."
fi
if systemctl is-active --quiet docker; then
echo "Docker service is already running."
else
sudo systemctl start docker
fi
uses: appleboy/ssh-action@master
with:
host: ${{ env.REMOTE_HOST }}
username: ${{ env.REMOTE_USER }}
key: ${{ env.SSH_PRIVATE_KEY }}
script: |
if ! command -v docker > /dev/null; then
sudo yum install docker -y
else
echo "docker is installed."
fi
if systemctl is-active --quiet docker; then
echo "Docker service is already running."
else
sudo systemctl start docker
fi
sudo usermod -aG docker ${{ env.REMOTE_USER }}
- name: Build Docker Image
run: |
Expand Down

0 comments on commit 158589b

Please sign in to comment.