Skip to content

Commit

Permalink
Merge pull request #220 from ksalerno99/master
Browse files Browse the repository at this point in the history
Adding ppc64le support back into the Jenkins CI SSH agent Docker build.
  • Loading branch information
dduportal authored Apr 17, 2023
2 parents 0313f2b + ebc1c98 commit 0e7089b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export DOCKER_CLI_EXPERIMENTAL=enabled
export BUILDKIT_PROGRESS=plain

current_arch := $(shell uname -m)
export ARCH ?= $(shell case $(current_arch) in (x86_64) echo "amd64" ;; (i386) echo "386";; (aarch64|arm64) echo "arm64" ;; (armv6*) echo "arm/v6";; (armv7*) echo "arm/v7";; (s390*|riscv*) echo $(current_arch);; (*) echo "UNKNOWN-CPU";; esac)
export ARCH ?= $(shell case $(current_arch) in (x86_64) echo "amd64" ;; (i386) echo "386";; (aarch64|arm64) echo "arm64" ;; (armv6*) echo "arm/v6";; (armv7*) echo "arm/v7";; (s390*|riscv*|ppc64le) echo $(current_arch);; (*) echo "UNKNOWN-CPU";; esac)

IMAGE_NAME:=jenkins4eval/ssh-agent

Expand Down
11 changes: 9 additions & 2 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ group "linux-s390x" {
]
}

group "linux-ppc64le" {
targets = [
"debian_jdk11",
"debian_jdk17",
]
}

variable "REGISTRY" {
default = "docker.io"
}
Expand Down Expand Up @@ -97,7 +104,7 @@ target "debian_jdk11" {
"${REGISTRY}/${JENKINS_REPO}:latest-bullseye-jdk11",
"${REGISTRY}/${JENKINS_REPO}:latest-jdk11",
]
platforms = ["linux/amd64", "linux/arm64", "linux/s390x"]
platforms = ["linux/amd64", "linux/arm64", "linux/s390x", "linux/ppc64le"]
}

target "debian_jdk17" {
Expand All @@ -110,5 +117,5 @@ target "debian_jdk17" {
"${REGISTRY}/${JENKINS_REPO}:latest-bullseye-jdk17",
"${REGISTRY}/${JENKINS_REPO}:latest-jdk17",
]
platforms = ["linux/amd64", "linux/arm64"]
platforms = ["linux/amd64", "linux/arm64", "linux/ppc64le"]
}

0 comments on commit 0e7089b

Please sign in to comment.