From 41701e85f891448166f1235da77931f222af5e17 Mon Sep 17 00:00:00 2001 From: Marco Da Re Date: Thu, 25 Jun 2026 07:33:32 +0200 Subject: [PATCH] ci: aggiungi workflow con trigger manuale --- .gitea/workflows/manuale.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .gitea/workflows/manuale.yml diff --git a/.gitea/workflows/manuale.yml b/.gitea/workflows/manuale.yml new file mode 100644 index 0000000..9385bdd --- /dev/null +++ b/.gitea/workflows/manuale.yml @@ -0,0 +1,41 @@ +name: Workflow Manuale + +on: + workflow_dispatch: + inputs: + ambiente: + description: "Ambiente di destinazione" + required: true + type: choice + options: + - staging + - production + default: staging + messaggio: + description: "Messaggio di release" + required: false + type: string + default: "Deploy manuale" + +jobs: + deploy-manuale: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Mostra parametri del deploy manuale + run: | + echo "======================================" + echo "Deploy manuale avviato da: ${{ github.actor }}" + echo "Ambiente scelto: ${{ inputs.ambiente }}" + echo "Messaggio: ${{ inputs.messaggio }}" + echo "Branch: ${{ github.ref_name }}" + echo "Commit: ${{ github.sha }}" + echo "======================================" + + - name: Simula deploy (placeholder) + run: | + echo "In un workflow reale, qui ci sarebbe:" + echo " - Build dell'immagine Docker" + echo " - Push al registry" + echo " - Deploy via SSH su ${{ inputs.ambiente }}"