- Delete release.yml (tarball-only, no deploy job). - Add deploy.yml calling reusable-deploy-dataops.yml, bumping only the legacy runtime's GITHUB_BRANCH via the new profile/profile_env_list_path mechanism — basic is left untouched for now. workflow_dispatch has no inputs. - Add require-chart-ref-label.yml.
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
name: Deploy DataOps Worker
|
|
|
|
on:
|
|
pull_request:
|
|
types: [closed]
|
|
branches: [main, 'release/**', 'feature/**']
|
|
workflow_dispatch:
|
|
|
|
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 }}
|
|
project_name: 'laborious'
|
|
chart_name: 'laborious-worker'
|
|
# Only the "legacy" runtime, for now (card 13 correction) — laborious-worker has two
|
|
# Deployments (basic, legacy). basic's GITHUB_BRANCH lives in the chart base (.global.env)
|
|
# and is deliberately left untouched here. legacy's own override exists ONLY at the profile
|
|
# level — profiles/gcp.yaml's laborious-worker.runtimes.legacy.env, not the chart base at
|
|
# all — hence profile/profile_env_list_path below instead of env_list_path.
|
|
profile: 'gcp'
|
|
profile_env_list_path: '[".runtimes.legacy.env"]'
|
|
update_version_in: '["pyproject"]'
|
|
create_tarball: ${{ github.event_name == 'pull_request' }}
|
|
mirror: true
|
|
bump_chart: true
|
|
deploy: true
|
|
secrets: inherit
|