release-model #18
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: release-model | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: 'Tag/ref to build (e.g. v0.1.30)' | |
| required: true | |
| type: string | |
| release: | |
| description: '(optional) Release type to create in https://github.com/docker/packaging/releases' | |
| required: false | |
| default: 'draft' | |
| type: choice | |
| options: | |
| - pushonly | |
| - draft | |
| - prerelease | |
| - release | |
| distros: | |
| description: '(optional, empty = all supported) Distros to build (comma-separated, e.g. "debian12,ubuntu2204")' | |
| required: false | |
| type: string | |
| default: '' | |
| revision: | |
| description: | | |
| Revision of the package to build. Only in case we ever would have to re-build an already published release with a packaging-only change. | |
| Default for a tagged/upstream release is 1. | |
| required: false | |
| type: string | |
| default: '' | |
| repo: | |
| description: '(optional) Override default repo (if want to build from a different Github repo/fork)' | |
| required: false | |
| type: string | |
| jobs: | |
| release: | |
| uses: ./.github/workflows/.build.yml | |
| with: | |
| name: model | |
| release: ${{ inputs.release }} | |
| distros: ${{ inputs.distros }} | |
| envs: | | |
| PKG_REPO=${{ inputs.repo }} | |
| PKG_REF=${{ inputs.ref }} | |
| PKG_DEB_REVISION=${{ inputs.revision }} | |
| PKG_RPM_RELEASE=${{ inputs.revision }} | |
| secrets: inherit |