Skip to content

Commit

Permalink
QD-9968 Build Ruby images with multiple versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Sep 25, 2024
1 parent 6f469ee commit 763c150
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
version: [ "next", "2024.2", "2024.1", "2023.3" ]
group: [ "default", "more" ]
include:
- version: "next"
group: "ruby"
- version: "next"
group: "clang"
- version: "2024.1"
Expand Down
36 changes: 35 additions & 1 deletion next/base/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ group "clang" {
targets = ["cpp"]
}

group "ruby" {
targets = ["ruby2x", "ruby3x"]
}

target "debian" {
tags = [
"registry.jetbrains.team/p/sa/containers/qodana:debian-base-latest"
Expand Down Expand Up @@ -73,11 +77,41 @@ target "cpp" {
}
name = "cpp-base-${clang}-latest"
tags = [
"registry.jetbrains.team/p/sa/containers/qodana:cpp-base-${clang}-latest"
"registry.jetbrains.team/p/sa/containers/qodana:cpp-base-${clang}-latest"
]
platforms = ["linux/amd64", "linux/arm64"]
dockerfile = "cpp.Dockerfile"
args = {
CLANG = clang
}
}

target "ruby2x" {
matrix = {
version = ["6", "7"]
}
name = "ruby-base-2${version}-latest"
tags = [
"registry.jetbrains.team/p/sa/containers/qodana:ruby-base-2.${version}-latest"
]
platforms = ["linux/amd64", "linux/arm64"]
dockerfile = "ruby.Dockerfile"
args = {
RUBY_TAG = "2.${version}-slim-bullseye"
}
}

target "ruby3x" {
matrix = {
version = ["0", "1", "2", "3"]
}
name = "ruby-base-3${version}-latest"
tags = [
"registry.jetbrains.team/p/sa/containers/qodana:ruby-base-3.${version}-latest"
]
platforms = ["linux/amd64", "linux/arm64"]
dockerfile = "ruby.Dockerfile"
args = {
RUBY_TAG = "3.${version}-slim-bullseye"
}
}

0 comments on commit 763c150

Please sign in to comment.