Skip to content

Commit ee5da0e

Browse files
authored
Merge pull request #309 from vvoland/containerd-runc
gha/containerd: Allow runc override
2 parents 7630f2c + 2057ec4 commit ee5da0e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/release-containerd.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
description: 'Tag/ref to build (e.g. v1.6.15)'
1212
required: true
1313
type: string
14+
runc_ref:
15+
description: '(optional) Runc tag/ref to build (e.g. v1.1.10). Defaults to the containerd version.'
16+
required: false
17+
type: string
18+
default: ''
1419
release:
1520
description: '(optional) Release type to create in https://github.com/docker/packaging/releases'
1621
required: false
@@ -50,4 +55,5 @@ jobs:
5055
PKG_REF=${{ inputs.ref }}
5156
PKG_DEB_REVISION=${{ inputs.revision }}
5257
PKG_RPM_RELEASE=${{ inputs.revision }}
58+
RUNC_REF=${{ inputs.runc_ref }}
5359
secrets: inherit

docker-bake.hcl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ variable "PKG_RPM_RELEASE" {
132132
default = null
133133
}
134134

135+
variable "RUNC_REF" {
136+
description = "Reference (branch, tag, commit) of runc to build. Only used for containerd package. If not set, defaults to the version specified in containerd's script/setup/runc-version file."
137+
default = null
138+
}
139+
135140
variable "NIGHTLY_BUILD" {
136141
description = "Set to 1 to enforce nightly build."
137142
default = null
@@ -542,6 +547,7 @@ target "_pkg-containerd" {
542547
GO_VERSION = GO_VERSION != null && GO_VERSION != "" ? GO_VERSION : "1.24.9" # https://github.com/containerd/containerd/blob/2d28d98490f53d78c98faecfc91f9fd54cdbc16e/.github/workflows/release.yml#L16
543548
GO_IMAGE_VARIANT = GO_IMAGE_VARIANT != null && GO_IMAGE_VARIANT != "" ? GO_IMAGE_VARIANT : "bookworm"
544549
PKG_DEB_EPOCH = PKG_DEB_EPOCH != null && PKG_DEB_EPOCH != "" ? PKG_DEB_EPOCH : ""
550+
RUNC_REF = RUNC_REF != null && RUNC_REF != "" ? RUNC_REF : null
545551
}
546552
}
547553

@@ -645,6 +651,7 @@ target "_common" {
645651
PKG_DEB_EPOCH = PKG_DEB_EPOCH
646652
PKG_RPM_BUILDFLAGS = PKG_RPM_BUILDFLAGS
647653
PKG_RPM_RELEASE = PKG_RPM_RELEASE
654+
RUNC_REF = RUNC_REF
648655
}
649656
}
650657

0 commit comments

Comments
 (0)