Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
release:
required: false
type: string
distro:
required: false
type: string

env:
REPO_SLUG: dockereng/packaging
Expand All @@ -35,10 +38,12 @@ jobs:
env:
INPUT_NAME: ${{ inputs.name }}
INPUT_RELEASE: ${{ inputs.release }}
INPUT_DISTRO: ${{ inputs.distro }}
with:
script: |
const inpName = core.getInput('name');
const inpRelease = core.getInput('release');
const inpDistro = core.getInput('distro');

if (inpRelease !== '' && !['pushonly', 'draft', 'prerelease', 'release'].includes(inpRelease)) {
throw new Error(`Invalid release type: ${inpRelease}`);
Expand Down Expand Up @@ -67,6 +72,10 @@ jobs:
}
const pkgName = match[1];
const distro = match[2];
// Skip distros that don't match the input distro filter
if (inpDistro !== '' && distro !== inpDistro) {
continue;
}
const target = def.target[targetName];
if (target.platforms && target.platforms.length > 0) {
target.platforms.forEach(platform => {
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ on:
- draft
- prerelease
- release
distro:
description: 'Single distro to build'
required: false
type: string
default: ''

jobs:
release:
uses: ./.github/workflows/.build.yml
with:
name: buildx
release: ${{ inputs.release }}
distro: ${{ inputs.distro }}
envs: |
PKG_REPO=${{ inputs.repo }}
PKG_REF=${{ inputs.ref }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ on:
- draft
- prerelease
- release
distro:
description: 'Single distro to build for'
required: false
type: string
default: ''

jobs:
release:
uses: ./.github/workflows/.build.yml
with:
name: compose
release: ${{ inputs.release }}
distro: ${{ inputs.distro }}
envs: |
PKG_REPO=${{ inputs.repo }}
PKG_REF=${{ inputs.ref }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-containerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ on:
- draft
- prerelease
- release
distro:
description: 'Single distro to build'
required: false
type: string
default: ''

jobs:
release:
uses: ./.github/workflows/.build.yml
with:
name: containerd
release: ${{ inputs.release }}
distro: ${{ inputs.distro }}
envs: |
PKG_REPO=${{ inputs.repo }}
PKG_REF=${{ inputs.ref }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-credential-helpers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ on:
- draft
- prerelease
- release
distro:
description: 'Single distro to build'
required: false
type: string
default: ''

jobs:
release:
uses: ./.github/workflows/.build.yml
with:
name: credential-helpers
release: ${{ inputs.release }}
distro: ${{ inputs.distro }}
envs: |
PKG_REPO=${{ inputs.repo }}
PKG_REF=${{ inputs.ref }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-docker-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ on:
- draft
- prerelease
- release
distro:
description: 'Single distro to build'
required: false
type: string
default: ''

jobs:
release:
uses: ./.github/workflows/.build.yml
with:
name: docker-cli
release: ${{ inputs.release }}
distro: ${{ inputs.distro }}
envs: |
PKG_REPO=${{ inputs.repo }}
PKG_REF=${{ inputs.ref }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-docker-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ on:
- draft
- prerelease
- release
distro:
description: 'Single distro to build'
required: false
type: string
default: ''

jobs:
release:
uses: ./.github/workflows/.build.yml
with:
name: docker-engine
release: ${{ inputs.release }}
distro: ${{ inputs.distro }}
envs: |
PKG_REPO=${{ inputs.repo }}
PKG_REF=${{ inputs.ref }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ on:
- draft
- prerelease
- release
distro:
description: 'Single distro to build'
required: false
type: string
default: ''

jobs:
release:
uses: ./.github/workflows/.build.yml
with:
name: model
release: ${{ inputs.release }}
distro: ${{ inputs.distro }}
envs: |
PKG_REPO=${{ inputs.repo }}
PKG_REF=${{ inputs.ref }}
Expand Down