47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: Deploy Python Application
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- closed
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
get-version:
|
|
name: Determine Next Version
|
|
runs-on: ubuntu-latest
|
|
permissions: write-all
|
|
if: github.event.pull_request.merged == true
|
|
outputs:
|
|
version: ${{ steps.version.outputs.next_version }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Determine next version
|
|
id: version
|
|
uses: Aignosi/github_workflow_templates/.github/actions/determine-next-version@main
|
|
with:
|
|
branch_name: ${{ github.event.pull_request.head.ref }}
|
|
|
|
deploy:
|
|
name: Deploy
|
|
needs: [get-version]
|
|
permissions: write-all
|
|
uses: Aignosi/github_workflow_templates/.github/workflows/reusable-deploy.yml@main
|
|
with:
|
|
version: ${{ needs.get-version.outputs.version }}
|
|
project_type: 'python'
|
|
image_name: 'sientia-dataops-model-manager'
|
|
helm_chart_path: 'sientia-module'
|
|
helm_release_name: 'sientia-dataops-model-manager'
|
|
helm_namespace: 'sientia'
|
|
update_version_in: '["pyproject", "values"]'
|
|
app_owner: 'Aignosi'
|
|
private_repos: 'sientia-dataops-library'
|
|
helm_repo_name: 'sientia'
|
|
helm_repo_url: 'https://raw.githubusercontent.com/Aignosi/sientia-dataops-helm-repo/refs/heads/main/'
|
|
helm_chart_version: '0.6.0'
|
|
helm_values_file: './values.yaml'
|
|
secrets: inherit
|