Skip to content

Commit

Permalink
Fix: develop.yml add curl
Browse files Browse the repository at this point in the history
  • Loading branch information
su-hwani committed May 2, 2024
1 parent c8f1872 commit 5bf6567
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@ jobs:
sudo systemctl start docker
sudo systemctl enable docker
fi
- name: Install Curl
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.TEST_EC2_PUBLIC_IP }}
username: ubuntu
key: ${{ secrets.TEST_SSH_PRIVATE_KEY }}
envs: GITHUB_SHA
script: |
if ! command -v curl &> /dev/null; then
sudo apt-get update
sudo apt-get install -y curl
fi
- name: Install Docker-compose
uses: appleboy/ssh-action@master
Expand All @@ -73,8 +86,11 @@ jobs:
envs: GITHUB_SHA
script: |
if ! command -v docker-compose &> /dev/null; then
sudo apt-get update
sudo apt-get install -y docker-compose
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
else
echo "Docker Compose already installed via curl."
fi
- name: Remove & Change docker-compose file
Expand Down

0 comments on commit 5bf6567

Please sign in to comment.