Skip to content

Commit

Permalink
fix: deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanie-A committed Oct 14, 2024
1 parent f916913 commit 4fee6e9
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: appleboy/ssh-action@master
with:
uses: easingthemes/ssh-deploy@main
env:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.HOST_USERNAME }}
key: ${{ secrets.EC2_KEY }}
port: 22
script : |
sudo su
sudo apt update -y
sudo apt install docker.io -y
sudo apt install docker-compose-plugin -y
docker pull stefnie/api-image:latest
docker pull stefnie/uri-image:latest
docker-compose -f compose.yaml up -d

# host: ${{ secrets.EC2_HOST }}
# username: ${{ secrets.HOST_USERNAME }}
# key: ${{ secrets.EC2_KEY }}
# port: 22
# script : |
# sudo su
# sudo apt update -y
# sudo apt install docker.io -y
# sudo apt install docker-compose-plugin -y
# docker pull stefnie/api-image:latest
# docker pull stefnie/uri-image:latest
# docker-compose -f compose.yaml up -d

0 comments on commit 4fee6e9

Please sign in to comment.