Skip to content

Commit

Permalink
fix: re-introduce -ubi suffixed images
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Dec 31, 2024
1 parent 69dc601 commit c7663c2
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev-tools/mage/dockervariants.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
const (
undefined = "undefined"
basic = "basic"
ubi = "ubi"
wolfi = "wolfi"
complete = "complete"
completeWolfi = "complete-wolfi"
Expand All @@ -26,6 +27,7 @@ type DockerVariant int
const (
Undefined = iota
Basic
UBI
Wolfi
WolfiComplete
Complete
Expand All @@ -40,6 +42,8 @@ func (typ DockerVariant) String() string {
return undefined
case Basic:
return basic
case UBI:
return ubi
case Wolfi:
return wolfi
case WolfiComplete:
Expand Down Expand Up @@ -67,6 +71,8 @@ func (typ *DockerVariant) UnmarshalText(text []byte) error {
*typ = Undefined
case basic:
*typ = Basic
case ubi:
*typ = UBI
case wolfi:
*typ = Wolfi
case completeWolfi:
Expand Down
48 changes: 48 additions & 0 deletions dev-tools/packaging/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,28 @@ specs:
<<: *docker_elastic_spec
<<: *elastic_license_for_binaries

# keep producing ubi suffixed images
- os: linux
arch: amd64
types: [docker]
spec:
<<: *docker_spec
<<: *docker_ubi_spec
<<: *docker_builder_spec
<<: *docker_elastic_spec
<<: *elastic_license_for_binaries
docker_variant: "ubi"
- os: linux
arch: arm64
types: [docker]
spec:
<<: *docker_spec
<<: *docker_ubi_arm_spec
<<: *docker_builder_arm_spec
<<: *docker_elastic_spec
<<: *elastic_license_for_binaries
docker_variant: "ubi"

- os: linux
arch: amd64
types: [docker]
Expand Down Expand Up @@ -913,6 +935,32 @@ specs:
files:
'{{.BeatName}}{{.BinaryExt}}':
source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
- os: linux
arch: amd64
types: [docker]
spec:
<<: *docker_ubi_spec
<<: *docker_builder_spec
<<: *agent_docker_spec
<<: *docker_elastic_spec
<<: *elastic_license_for_binaries
docker_variant: 'ubi'
files:
'{{.BeatName}}{{.BinaryExt}}':
source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
- os: linux
arch: arm64
types: [docker]
spec:
<<: *docker_ubi_arm_spec
<<: *docker_builder_arm_spec
<<: *agent_docker_spec
<<: *docker_elastic_spec
<<: *elastic_license_for_binaries
docker_variant: 'ubi'
files:
'{{.BeatName}}{{.BinaryExt}}':
source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
- os: linux
arch: amd64
types: [docker]
Expand Down

0 comments on commit c7663c2

Please sign in to comment.