ci: aggiungi workflow con trigger manuale
This commit is contained in:
@@ -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 }}"
|
||||||
Reference in New Issue
Block a user