30 lines
795 B
YAML
30 lines
795 B
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: 'orchestrator'
|
|
chart_name: 'orchestrator-worker'
|
|
env_list_path: '.env'
|
|
update_version_in: '["pyproject"]'
|
|
create_tarball: ${{ github.event_name == 'pull_request' }}
|
|
mirror: true
|
|
bump_chart: true
|
|
deploy: true
|
|
secrets: inherit
|