Update yml file versions to v1.8 #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Version: v1.8 | ||
|
Check failure on line 1 in .github/workflows/sh-build-source-control.yml
|
||
| # Reusable Workflow: Build Package from Source Control | ||
| # This workflow builds a DBmaestro package from source control (Tasks or Specific Commit) | ||
| # and validates it with precheck | ||
| name: Build from Source Control (Linux) | ||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| package_name: | ||
| description: 'Name of the package to build' | ||
| required: true | ||
| type: string | ||
| project_name: | ||
| description: 'DBmaestro project name' | ||
| required: true | ||
| type: string | ||
| environment-name: | ||
| description: 'Development environment name' | ||
| required: false | ||
| type: string | ||
| default: 'Dev_Env_1' | ||
| version_type: | ||
| description: 'Version type: Tasks, Specific Commit, or empty' | ||
| required: false | ||
| type: string | ||
| default: '' | ||
| additional_information: | ||
| description: 'Tasks list (comma-separated) or specific commit hash' | ||
| required: false | ||
| type: string | ||
| default: '' | ||
| agent_jar_path: | ||
| description: 'Path to DBmaestro Agent JAR file' | ||
| required: false | ||
| type: string | ||
| default: '/home/runner/DBmaestroAgent.jar' | ||
| use_ssl: | ||
| description: 'Use SSL for DBmaestro connection' | ||
| required: false | ||
| type: string | ||
| default: 'True' | ||
| auth_type: | ||
| description: 'Authentication type' | ||
| required: false | ||
| type: string | ||
| default: 'DBmaestroAccount' | ||
| runner: | ||
| description: 'GitHub runner to use' | ||
| required: false | ||
| type: string | ||
| default: 'dbmaestro-linux' | ||
| dbmaestro_server: | ||
| description: 'DBmaestro server URL' | ||
| required: true | ||
| dbmaestro_user: | ||
| description: 'DBmaestro username' | ||
| required: true | ||
| secrets: | ||
| DBMAESTRO_PASSWORD: | ||
| description: 'DBmaestro password' | ||
| required: true | ||
| jobs: | ||
| build_package: | ||
| name: Build Package | ||
| runs-on: ${{ inputs.runner }} | ||
| steps: | ||
| - name: Build Package Summary | ||
| shell: bash | ||
| run: | | ||
| cat >> $GITHUB_STEP_SUMMARY << EOF | ||
| ## :package: Source Control Build Summary | ||
| | Property | Value | | ||
| |----------|-------| | ||
| | **Package Name** | ${{ inputs.package_name }} | | ||
| | **Project Name** | ${{ inputs.project_name }} | | ||
| | **Environment** | ${{ inputs.environment-name }} | | ||
| | **Version Type** | ${{ inputs.version_type }} | | ||
| | **Additional Info** | ${{ inputs.additional_information }} | | ||
| EOF | ||
| - name: Build from Source Control | ||
| uses: DBMaestroDev/github/.github/actions/sh/build-from-source-control@main | ||
| with: | ||
| package_name: ${{ inputs.package_name }} | ||
| project_name: ${{ inputs.project_name }} | ||
| environment-name: ${{ inputs.environment-name }} | ||
| version_type: ${{ inputs.version_type }} | ||
| additional_information: ${{ inputs.additional_information }} | ||
| agent_jar_path: ${{ inputs.agent_jar_path }} | ||
| dbmaestro_server: ${{ inputs.dbmaestro_server }} | ||
| use_ssl: ${{ inputs.use_ssl }} | ||
| auth_type: ${{ inputs.auth_type }} | ||
| dbmaestro_user: ${{ inputs.dbmaestro_user }} | ||
| dbmaestro_password: ${{ secrets.DBMAESTRO_PASSWORD }} | ||
| precheck_package: | ||
| name: Validate Package | ||
| runs-on: ${{ inputs.runner }} | ||
| needs: build_package | ||
| steps: | ||
| - name: Precheck Package | ||
| uses: DBMaestroDev/github/.github/actions/sh/precheck-package@main | ||
| with: | ||
| package_name: ${{ inputs.package_name }} | ||
| project_name: ${{ inputs.project_name }} | ||
| agent_jar_path: ${{ inputs.agent_jar_path }} | ||
| dbmaestro_server: ${{ inputs.dbmaestro_server }} | ||
| use_ssl: ${{ inputs.use_ssl }} | ||
| auth_type: ${{ inputs.auth_type }} | ||
| dbmaestro_user: ${{ inputs.dbmaestro_user }} | ||
| dbmaestro_password: ${{ secrets.DBMAESTRO_PASSWORD }} | ||