From ad8ec0b54ad1b578e9906e6777648c9e76acb9dd Mon Sep 17 00:00:00 2001 From: InAnYan Date: Wed, 29 Jul 2026 16:46:27 +0200 Subject: [PATCH] feat: add caddy --- .gitea/workflows/deploy-caddy.yml | 101 ++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 .gitea/workflows/deploy-caddy.yml diff --git a/.gitea/workflows/deploy-caddy.yml b/.gitea/workflows/deploy-caddy.yml new file mode 100644 index 0000000..1931446 --- /dev/null +++ b/.gitea/workflows/deploy-caddy.yml @@ -0,0 +1,101 @@ +name: Deploy Caddyfile + +on: + workflow_call: + inputs: + vm_ip: + description: Caddy VM IP + required: false + type: string + default: "192.168.100.10" + + jump_host: + type: string + default: "212.3.125.242" + + jump_port: + type: string + default: "2222" + + jump_user: + type: string + default: "jump" + + vm_port: + type: string + default: "22" + + vm_user: + type: string + default: "debian" + + secrets: + jump_ssh_key: + required: true + + vm_ssh_key: + required: true + + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + + - name: Configure SSH + run: | + mkdir -p ~/.ssh + chmod 700 ~/.ssh + + echo "${{ secrets.jump_ssh_key }}" > ~/.ssh/jump_key + chmod 600 ~/.ssh/jump_key + + echo "${{ secrets.vm_ssh_key }}" > ~/.ssh/vm_key + chmod 600 ~/.ssh/vm_key + + + cat > ~/.ssh/config <