Files
act-runner-example/.github/workflows/ssh.yaml.off
2024-10-14 14:58:39 +08:00

19 lines
656 B
Plaintext

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