From ff4c1e3e108094702c79869113804fa8920dbbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 14 Oct 2024 14:58:39 +0800 Subject: [PATCH] ssh.yaml.off --- .github/workflows/ssh.yaml.off | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ssh.yaml.off diff --git a/.github/workflows/ssh.yaml.off b/.github/workflows/ssh.yaml.off new file mode 100644 index 0000000..c8311f3 --- /dev/null +++ b/.github/workflows/ssh.yaml.off @@ -0,0 +1,18 @@ +on: + push: + branches: ["main"] +jobs: + ssh: + runs-on: ubuntu-latest + # https://docs.github.com/zh/actions/writing-workflows/choosing-where-your-workflow-runs/running-jobs-in-a-container + container: + image: ghcr.io/appleboy/drone-ssh # https://github.com/appleboy/ssh-action -> https://github.com/appleboy/drone-ssh + env: + PLUGIN_HOST: + PLUGIN_KEY: ${{ secrets.REMOTE_SSH_KEY }} + PLUGIN_SCRIPT: | + set -x + docker compose -f /root/_docker-stacks/renovate/compose.yml pull --quiet + docker compose -f /root/_docker-stacks/renovate/compose.yml up -d + steps: + - run: /bin/drone-ssh