SIENTIAPDE-1352: Add deploy workflow and update README with local repository execution instructions.
This commit is contained in:
52
.github/workflows/deploy.yml
vendored
Normal file
52
.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
name: Deploy Python Application
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
get-version:
|
||||
name: Determine Next Version
|
||||
runs-on: ubuntu-latest
|
||||
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]
|
||||
uses: Aignosi/github_workflow_templates/.github/workflows/reusable-deploy.yml@feature/SIENTIAPDE-1352
|
||||
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'
|
||||
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:
|
||||
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
|
||||
REGISTRY_LOGIN_SERVER: ${{ secrets.REGISTRY_LOGIN_SERVER }}
|
||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
SUSE_RKE2_KUBE_CONFIG: ${{ secrets.SUSE_RKE2_KUBE_CONFIG }}
|
||||
CI_DEPS_APP_ID: ${{ secrets.CI_DEPS_APP_ID }}
|
||||
CI_DEPS_PRIVATE_KEY: ${{ secrets.CI_DEPS_PRIVATE_KEY }}
|
||||
HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }}
|
||||
HELM_REPO_PASSWORD: ${{ secrets.HELM_REPO_PASSWORD }}
|
||||
Reference in New Issue
Block a user