From 9e6bd790a3465f737d2945338806ba6e29f6b43f Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Sat, 11 Jul 2026 01:56:04 +0200 Subject: [PATCH] feat(ci): accept deploy_host input so deploy-all can target a fresh box When unom/infra deploy-all provisions a new unom-1, it dispatches this deploy with the just-created box IP. Falls back to the DEPLOY_HOST secret on push-triggered runs, so existing behavior is unchanged. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/deploy-services.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-services.yml b/.gitea/workflows/deploy-services.yml index 777d045c..53a594ae 100644 --- a/.gitea/workflows/deploy-services.yml +++ b/.gitea/workflows/deploy-services.yml @@ -21,6 +21,10 @@ run-name: ${{ gitea.actor }} deploy docs + flatpak server on: workflow_dispatch: + inputs: + deploy_host: + description: "Box IP to deploy to; deploy-all passes the freshly-provisioned target IP. Blank (push) uses the DEPLOY_HOST secret." + required: false jobs: docs: @@ -34,7 +38,7 @@ jobs: # exfiltration. v0.1.7 = 917f8b8. Bump the SHA + trailing version together. uses: appleboy/scp-action@917f8b81dfc1ccd331fef9e2d61bdc6c8be94634 # v0.1.7 with: - host: ${{ secrets.DEPLOY_HOST }} + host: ${{ inputs.deploy_host || secrets.DEPLOY_HOST }} username: ${{ secrets.DEPLOY_USER }} port: ${{ secrets.DEPLOY_PORT }} key: ${{ secrets.DEPLOY_SSH_KEY }} @@ -48,7 +52,7 @@ jobs: env: REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} with: - host: ${{ secrets.DEPLOY_HOST }} + host: ${{ inputs.deploy_host || secrets.DEPLOY_HOST }} username: ${{ secrets.DEPLOY_USER }} port: ${{ secrets.DEPLOY_PORT }} key: ${{ secrets.DEPLOY_SSH_KEY }} @@ -70,7 +74,7 @@ jobs: - name: Sync flatpak server compose + Caddyfile uses: appleboy/scp-action@917f8b81dfc1ccd331fef9e2d61bdc6c8be94634 # v0.1.7 with: - host: ${{ secrets.DEPLOY_HOST }} + host: ${{ inputs.deploy_host || secrets.DEPLOY_HOST }} username: ${{ secrets.DEPLOY_USER }} port: ${{ secrets.DEPLOY_PORT }} key: ${{ secrets.DEPLOY_SSH_KEY }} @@ -83,7 +87,7 @@ jobs: - name: Start flatpak static server uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5 with: - host: ${{ secrets.DEPLOY_HOST }} + host: ${{ inputs.deploy_host || secrets.DEPLOY_HOST }} username: ${{ secrets.DEPLOY_USER }} port: ${{ secrets.DEPLOY_PORT }} key: ${{ secrets.DEPLOY_SSH_KEY }}