Merge branch 'main' into fix/SIENTIAPDE-2214
This commit is contained in:
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
@@ -1,23 +1,27 @@
|
|||||||
name: Deploy DataOps Worker
|
name: Deploy DataOps Worker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
types: [closed]
|
|
||||||
branches: [main, 'release/**', 'feature/**']
|
|
||||||
workflow_dispatch:
|
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:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
id-token: write
|
id-token: write
|
||||||
pull-requests: read
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: 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
|
uses: Aignosi/github_workflow_templates/.github/workflows/reusable-deploy-dataops.yml@main
|
||||||
with:
|
with:
|
||||||
branch_name: ${{ github.event.pull_request.head.ref }}
|
branch_name: ${{ github.ref_name }}
|
||||||
|
chart_ref: ${{ inputs.chart_ref }}
|
||||||
project_name: 'model-manager'
|
project_name: 'model-manager'
|
||||||
chart_name: 'model-manager'
|
chart_name: 'model-manager'
|
||||||
env_list_path: '[".global.env"]'
|
env_list_path: '[".global.env"]'
|
||||||
|
|||||||
16
.github/workflows/require-chart-ref-label.yml
vendored
16
.github/workflows/require-chart-ref-label.yml
vendored
@@ -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
|
|
||||||
14
.github/workflows/version-bump.yml
vendored
Normal file
14
.github/workflows/version-bump.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Version Bump
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [closed]
|
||||||
|
branches: [main, 'release/**', 'feature/**']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
bump:
|
||||||
|
if: github.event.pull_request.merged == true
|
||||||
|
uses: Aignosi/github_workflow_templates/.github/workflows/reusable-version-bump.yml@main
|
||||||
|
with:
|
||||||
|
update_version_in: '["pyproject"]'
|
||||||
|
secrets: inherit
|
||||||
@@ -813,7 +813,9 @@ Runs automatically on each Pull Request to `main`:
|
|||||||
- ✅ Automatic version calculation based on branch pattern
|
- ✅ Automatic version calculation based on branch pattern
|
||||||
|
|
||||||
#### Deploy (`.github/workflows/deploy.yml`)
|
#### Deploy (`.github/workflows/deploy.yml`)
|
||||||
Runs automatically when a PR is merged to `main`:
|
Triggered manually via `workflow_dispatch`, with a required `chart_ref` input (no
|
||||||
|
default — the sientia-helm-chart branch to bump and deploy; a branch that doesn't
|
||||||
|
exist is a hard error, not a silent fallback):
|
||||||
- ✅ Builds and pushes Docker image to Azure Container Registry
|
- ✅ Builds and pushes Docker image to Azure Container Registry
|
||||||
- ✅ Creates GitHub release with calculated version
|
- ✅ Creates GitHub release with calculated version
|
||||||
- ✅ Deploys to Kubernetes using Helm
|
- ✅ Deploys to Kubernetes using Helm
|
||||||
|
|||||||
Reference in New Issue
Block a user