Build puppet-runtime #553
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
| --- | |
| name: Build puppet-runtime | |
| permissions: | |
| contents: read # minimal required permissions to clone repo | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: 'Tag to build for a release, or branch to build for a pre-release' | |
| required: true | |
| project_name: | |
| description: 'The vanagon project to build' | |
| type: choice | |
| options: | |
| - agent-runtime-main | |
| - agent-runtime-8.x | |
| - openbolt-runtime | |
| default: 'agent-runtime-main' | |
| branch: | |
| description: >- | |
| The default platform list to build for. Use `main` for 9.x builds | |
| and `8.x` for 8.x builds. | |
| type: choice | |
| options: | |
| - main | |
| - '8.x' | |
| default: 'main' | |
| platform_list: | |
| description: >- | |
| Comma-separated list of platforms to build for. Do not include | |
| spaces. If not provided, will use the default platform list chosen | |
| above. | |
| required: false | |
| type: string | |
| vanagon_branch: | |
| description: 'The branch of the vanagon repository to use' | |
| required: false | |
| type: string | |
| default: 'main' | |
| upload_to_s3: | |
| description: 'Whether to upload the built artifacts to S3. If false, the artifacts will only be uploaded as workflow artifacts.' | |
| required: false | |
| type: boolean | |
| default: true | |
| use_dev: | |
| description: 'Use the "dev" branch of the shared-actions repo' | |
| required: false | |
| type: boolean | |
| default: false | |
| jobs: | |
| build: | |
| if: ${{ github.event.inputs.use_dev == 'false' }} | |
| uses: 'openvoxproject/shared-actions/.github/workflows/build_vanagon.yml@main' | |
| with: | |
| ref: ${{ inputs.ref }} | |
| project_name: ${{ inputs.project_name }} | |
| platform_list: ${{ inputs.platform_list }} | |
| vanagon_branch: ${{ inputs.vanagon_branch }} | |
| upload_to_s3: ${{ inputs.upload_to_s3 }} | |
| branch: ${{ inputs.branch }} | |
| secrets: inherit | |
| build_dev: | |
| if: ${{ github.event.inputs.use_dev == 'true' }} | |
| uses: 'openvoxproject/shared-actions/.github/workflows/build_vanagon.yml@dev' | |
| with: | |
| ref: ${{ inputs.ref }} | |
| project_name: ${{ inputs.project_name }} | |
| platform_list: ${{ inputs.platform_list }} | |
| vanagon_branch: ${{ inputs.vanagon_branch }} | |
| upload_to_s3: ${{ inputs.upload_to_s3 }} | |
| branch: ${{ inputs.branch }} | |
| secrets: inherit |