From 4fee6e9552afcf60fc72cb157e27a91fd245b134 Mon Sep 17 00:00:00 2001 From: Stefanie-A Date: Mon, 14 Oct 2024 22:08:36 +0100 Subject: [PATCH] fix: deployment --- .github/workflows/deploy.yaml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2429a0a..acf7977 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 \ No newline at end of file + + # 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 \ No newline at end of file