From a8d5fc2014de7ae42a94b76784e5febfd2efc75f Mon Sep 17 00:00:00 2001 From: devaine Date: Mon, 11 May 2026 15:19:48 -0500 Subject: [PATCH] test(workflows): adding new env section to deployment --- .forgejo/workflows/start.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/start.yaml b/.forgejo/workflows/start.yaml index b309476..d0a6adb 100644 --- a/.forgejo/workflows/start.yaml +++ b/.forgejo/workflows/start.yaml @@ -79,13 +79,18 @@ jobs: echo ${{ secrets.API_PORT }} >> .env - name: Setup remote connection and deploy container. + env: + DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} + DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }} + DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} + DEPLOY_USER: ${{ secrets.DEPLOY_USER }} run: | # Begin setting up SSH w/ Secrets install -m 600 -D /dev/null ~/.ssh/${{ secrets.DEPLOY_USER }} - echo ${{ secrets.DEPLOY_KEY }} | base64 -d > ~/.ssh/${{ secrets.DEPLOY_USER }} - ssh-keyscan -H -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_HOST }} > ~/.ssh/known_hosts + echo $DEPLOY_KEY | base64 -d > ~/.ssh/$DEPLOY_USER + ssh-keyscan -H -p $DEPLOY_PORT $DEPLOY_HOST > ~/.ssh/known_hosts - printf "Host deploy\nPort ${{ secrets.DEPLOY_PORT }} \nHostname ${{ secrets.DEPLOY_HOST }} \nIdentityFile ~/.ssh/ ${{ secrets.DEPLOY_USER }} \nUser ${{ secrets.DEPLOY_USER }}" > ~/.ssh/config + printf "Host deploy\nPort $DEPLOY_PORT\nHostname $DEPLOY_HOST\nIdentityFile ~/.ssh/$DEPLOY_USER\nUser $DEPLOY_USER" > ~/.ssh/config unset DOCKER_HOST docker context create deploy --docker "host=ssh://deploy" docker context use deploy