From ee14ac83225a03f7fc55a818549d81d084fda192 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Sat, 11 Jul 2026 01:55:58 +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.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1c3437b..57bdd3a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -5,6 +5,10 @@ on: push: branches: [main] 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: build: @@ -78,7 +82,7 @@ jobs: REGISTRY_USER: ${{ secrets.REGISTRY_USER }} 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 }} -- 2.54.0