From 86111bc9f5d75f602d46d345f0bbaabce3f5dbc4 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskii Date: Wed, 24 Jan 2024 20:45:34 -0300 Subject: [PATCH] debug: simplify main.yml for actions --- .gitea/workflows/main.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index c634f98c..c2cbfa60 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -1,4 +1,4 @@ -name: 'Deploy to discoursio-api' +name: 'Deploy to discoursio-api' on: push: branches: @@ -13,11 +13,20 @@ jobs: with: fetch-depth: 0 - - name: Push to discoursio-api + - name: Get Repo Name + id: repo_name + run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})" + + - name: Get Branch Name + id: branch_name + run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})" + + - name: Push to dokku uses: dokku/github-action@master with: - ssh-private-key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} - ssh-host: staging.discours.io - ssh-user: dokku - app-name: discoursio-api - git-remote-url: ssh://dokku@staging.discours.io:22/discoursio-api + branch: 'main' + git_remote_url: 'ssh://dokku@staging.discours.io:22/discoursio-api' + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} + git_push_flags: '--force' + +