From 136fcfac5d26866357b99114200fc577bd1e20d1 Mon Sep 17 00:00:00 2001 From: Sonny Date: Sun, 7 Jul 2024 14:52:06 +0200 Subject: [PATCH] ci: (re)enable deployment step --- .github/workflows/cd.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8b65512..d1dd283 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -36,18 +36,18 @@ jobs: tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} - # execute_commands_via_ssh: - # name: Pull latest docker image and start up the application with Docker Compose - # runs-on: ubuntu-latest - # needs: push_image_to_docker_hub - # steps: - # - name: Executing remote ssh commands - # uses: appleboy/ssh-action@master - # with: - # host: ${{ secrets.SSH_HOST }} - # port: ${{ secrets.SSH_PORT }} - # username: ${{ secrets.SSH_USERNAME }} - # key: ${{ secrets.SSH_KEY }} - # script: | - # cd /infra/my-links - # sh startup.sh + execute_commands_via_ssh: + name: Pull latest docker image and start up the application with Docker Compose + runs-on: ubuntu-latest + needs: push_image_to_docker_hub + steps: + - name: Executing remote ssh commands + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SSH_HOST }} + port: ${{ secrets.SSH_PORT }} + username: ${{ secrets.SSH_USERNAME }} + key: ${{ secrets.SSH_KEY }} + script: | + cd /infra/my-links + sh startup.sh