From 72a875f1ccc46fb5b01b5e00d61d6bad6cc15ee2 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Sun, 7 Jun 2026 17:37:58 +0000 Subject: [PATCH] ci(build-deploy-game): accept optional deploy_host input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PLAYED_HOST falls back to inputs.deploy_host when set, else the secret — lets played/infra deploy-all target a freshly-provisioned box. Game callers forward the input. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/build-deploy-game.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-deploy-game.yml b/.gitea/workflows/build-deploy-game.yml index 7cf5589..90a0fb4 100644 --- a/.gitea/workflows/build-deploy-game.yml +++ b/.gitea/workflows/build-deploy-game.yml @@ -46,6 +46,11 @@ on: description: Game slug (must match @played/games-registry's GAMES, e.g. relayer) type: string required: true + deploy_host: + description: Box IP to deploy to (passed by deploy-all). Blank = the PLAYED_HOST secret. + type: string + required: false + default: "" jobs: build-api-core: @@ -122,7 +127,7 @@ jobs: runs-on: ubuntu-24.04 needs: build-api-core env: - PLAYED_HOST: ${{ secrets.PLAYED_HOST }} + PLAYED_HOST: ${{ inputs.deploy_host || secrets.PLAYED_HOST }} PLAYED_USER: ${{ secrets.PLAYED_USER }} PLAYED_PORT: ${{ secrets.PLAYED_PORT }} GAME_ID: ${{ inputs.game-id }} @@ -286,7 +291,7 @@ jobs: # Both gates: image must be built AND api-core must be live before web flips. needs: [build-web, deploy-api-core] env: - PLAYED_HOST: ${{ secrets.PLAYED_HOST }} + PLAYED_HOST: ${{ inputs.deploy_host || secrets.PLAYED_HOST }} PLAYED_USER: ${{ secrets.PLAYED_USER }} PLAYED_PORT: ${{ secrets.PLAYED_PORT }} GAME_ID: ${{ inputs.game-id }}