diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 09a9b41..15fb4d1 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -34,22 +34,6 @@ on: # ── Manual Trigger (full control) ── workflow_dispatch: - inputs: - service: - description: 'Service to deploy (empty = all)' - required: false - default: '' - type: string - no_cache: - description: 'Disable Docker build cache (true/false)' - required: false - default: 'false' - type: string - git_ref: - description: 'Git ref to deploy (branch, tag, or commit SHA; default: main)' - required: false - default: 'main' - type: string jobs: deploy: @@ -79,7 +63,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: ${{ github.event_name == 'workflow_dispatch' && inputs.git_ref || 'main' }} + ref: main fetch-depth: 0 fetch-tags: true @@ -211,15 +195,8 @@ jobs: run: | set -euo pipefail - # Auto-deploy: always use cache. Manual: respect no_cache input. BUILD_ARGS="" SERVICE_ARG="" - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - if [ "${{ github.event_name == 'workflow_dispatch' && inputs.no_cache || 'false' }}" = "true" ]; then - BUILD_ARGS="--no-cache" - fi - SERVICE_ARG="${{ github.event_name == 'workflow_dispatch' && inputs.service || '' }}" - fi # Write the deploy script to a file to avoid nested quoting issues cat > /tmp/nexus-deploy-script.sh << 'DEPLOYSCRIPT' @@ -376,8 +353,8 @@ DEPLOYSCRIPT echo " 📦 Deploy Summary" echo "═══════════════════════════════════════" echo " Version: v${{ steps.version.outputs.version }}" - echo " Git ref: ${{ github.event_name == 'workflow_dispatch' && inputs.git_ref || 'main' }}" - echo " Service: ${{ github.event_name == 'workflow_dispatch' && inputs.service || 'all' }}" + echo " Git ref: main" + echo " Service: all" echo " Trigger: ${TRIGGER}" echo " Actor: @${{ gitea.actor }}" echo " Status: ${{ job.status }}"