From 7b3da582be65b45a69212146e7c5d5e7437b5ff5 Mon Sep 17 00:00:00 2001 From: Bruno Domingues Date: Tue, 20 Oct 2026 18:02:02 -0300 Subject: [PATCH] chore(ci): switch deploy.yml to manual workflow_dispatch with required chart_ref MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes auto-deploy-on-PR-merge trigger and the old PR-merge gate. Deploy now triggers only via workflow_dispatch, with chart_ref required (no default) as the literal sientia-helm-chart branch bumped and deployed — hard error if it doesn't exist, no silent fallback to development/main. - .github/workflows/deploy.yml: drop pull_request trigger, add chart_ref input, branch_name now github.ref_name, drop pull-requests:read permission - Delete .github/workflows/require-chart-ref-label.yml [skip ci] --- .github/workflows/deploy.yml | 16 ++++++++++------ .github/workflows/require-chart-ref-label.yml | 16 ---------------- 2 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/require-chart-ref-label.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 998130d..b5a9404 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,23 +1,27 @@ name: Deploy DataOps Worker on: - pull_request: - types: [closed] - branches: [main, 'release/**', 'feature/**'] workflow_dispatch: + inputs: + chart_ref: + description: > + sientia-helm-chart branch to bump GITHUB_BRANCH on AND deploy — the literal + deploy target. Validated via git ls-remote; a branch that does not exist in + sientia-helm-chart is a hard error, not a silent fallback to main. + required: true + type: string permissions: contents: write id-token: write - pull-requests: read jobs: deploy: name: Deploy - if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true uses: Aignosi/github_workflow_templates/.github/workflows/reusable-deploy-dataops.yml@main with: - branch_name: ${{ github.event.pull_request.head.ref }} + branch_name: ${{ github.ref_name }} + chart_ref: ${{ inputs.chart_ref }} project_name: 'ingestor' chart_name: 'opc-ingestor' env_list_path: '[".env"]' diff --git a/.github/workflows/require-chart-ref-label.yml b/.github/workflows/require-chart-ref-label.yml deleted file mode 100644 index 20f8be3..0000000 --- a/.github/workflows/require-chart-ref-label.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Require chart-ref label - -on: - pull_request: - types: [opened, synchronize, reopened, labeled, unlabeled] - branches: - - main - - 'release/**' - - 'feature/**' - -permissions: - pull-requests: write - -jobs: - require-chart-ref-label: - uses: Aignosi/github_workflow_templates/.github/workflows/require-chart-ref-label.yml@main