-
Notifications
You must be signed in to change notification settings - Fork 31
60 lines (56 loc) · 1.78 KB
/
release-model.yml
File metadata and controls
60 lines (56 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: release-model
permissions:
contents: read
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: 'release'
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:
rh_user: ${{ secrets.RH_USER }}
rh_pass: ${{ secrets.RH_PASS }}
dockerpublicbot_username: ${{ secrets.DOCKERPUBLICBOT_USERNAME }}
dockerpublicbot_write_pat: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}