From 30b38e7247e389c62371549376e045b231b17716 Mon Sep 17 00:00:00 2001 From: log101 Date: Thu, 30 May 2024 16:49:22 +0300 Subject: [PATCH] ci: add deploy script --- .gitea/workflows/go-deploy.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/go-deploy.yaml diff --git a/.gitea/workflows/go-deploy.yaml b/.gitea/workflows/go-deploy.yaml new file mode 100644 index 0000000..d516251 --- /dev/null +++ b/.gitea/workflows/go-deploy.yaml @@ -0,0 +1,18 @@ +run-name: ${{ gitea.actor }}, deploy with ssh +on: [push] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Rebuild docker compose + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY }} + script: | + cd /home/log101/prod/log101.dev-services + git pull + docker compose up -d --build