From 4a61a241a905ce684de9c1c461568d4fa0a389d1 Mon Sep 17 00:00:00 2001 From: Paolo Martin Date: Thu, 25 Jun 2026 11:27:55 +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..892fee9 --- /dev/null +++ b/.gitea/workflows/manuale.yml @@ -0,0 +1,41 @@ +name: Workflow Manuale + +on: + workflow_dispatch: # Attivato manualmente dall'interfaccia Gitea + 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 }}"