diff --git a/.github/workflows/deploy-manual.yml b/.github/workflows/deploy-manual.yml new file mode 100644 index 0000000..c3619b0 --- /dev/null +++ b/.github/workflows/deploy-manual.yml @@ -0,0 +1,25 @@ +name: Deploy-manual + +on: + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: executing remote ssh commands using password + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USERNAME }} + key: ${{ secrets.SERVER_KEY }} + passphrase: ${{ secrets.SERVER_PASSPHRASE }} + script_stop: true + script: | + echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin + cd bingusboingus + docker compose pull + docker compose up -d + + ###ssh sachen + # https://github.com/appleboy/ssh-action