Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Remove unused docker manifests (#1945)
Browse files Browse the repository at this point in the history
* Remove unused docker manifests

Signed-off-by: Alexey Rodionov <[email protected]>
  • Loading branch information
Stayer authored Dec 13, 2018
1 parent 8677175 commit 6850928
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
11 changes: 3 additions & 8 deletions .jenkinsci/debug-build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,12 @@ def doDebugBuild(coverageEnabled=false) {
// or it is a commit into PR which base branch is develop (usually develop -> master)
if ((GIT_LOCAL_BRANCH == 'develop' || CHANGE_BRANCH_LOCAL == 'develop' || GIT_LOCAL_BRANCH == 'dev' || CHANGE_BRANCH_LOCAL == 'dev') && manifest.manifestSupportEnabled()) {
manifest.manifestCreate("${DOCKER_REGISTRY_BASENAME}:develop-build",
["${DOCKER_REGISTRY_BASENAME}:x86_64-develop-build",
"${DOCKER_REGISTRY_BASENAME}:armv7l-develop-build",
"${DOCKER_REGISTRY_BASENAME}:aarch64-develop-build"])
["${DOCKER_REGISTRY_BASENAME}:x86_64-develop-build"]
)
manifest.manifestAnnotate("${DOCKER_REGISTRY_BASENAME}:develop-build",
[
[manifest: "${DOCKER_REGISTRY_BASENAME}:x86_64-develop-build",
arch: 'amd64', os: 'linux', osfeatures: [], variant: ''],
[manifest: "${DOCKER_REGISTRY_BASENAME}:armv7l-develop-build",
arch: 'arm', os: 'linux', osfeatures: [], variant: 'v7'],
[manifest: "${DOCKER_REGISTRY_BASENAME}:aarch64-develop-build",
arch: 'arm64', os: 'linux', osfeatures: [], variant: '']
arch: 'amd64', os: 'linux', osfeatures: [], variant: '']
])
withCredentials([usernamePassword(credentialsId: 'docker-hub-credentials', usernameVariable: 'login', passwordVariable: 'password')]) {
manifest.manifestPush("${DOCKER_REGISTRY_BASENAME}:develop-build", login, password)
Expand Down
20 changes: 4 additions & 16 deletions .jenkinsci/release-build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,11 @@ def doReleaseBuild() {
}
if (manifest.manifestSupportEnabled()) {
manifest.manifestCreate("${DOCKER_REGISTRY_BASENAME}:develop",
["${DOCKER_REGISTRY_BASENAME}:x86_64-develop",
"${DOCKER_REGISTRY_BASENAME}:armv7l-develop",
"${DOCKER_REGISTRY_BASENAME}:aarch64-develop"])
["${DOCKER_REGISTRY_BASENAME}:x86_64-develop"])
manifest.manifestAnnotate("${DOCKER_REGISTRY_BASENAME}:develop",
[
[manifest: "${DOCKER_REGISTRY_BASENAME}:x86_64-develop",
arch: 'amd64', os: 'linux', osfeatures: [], variant: ''],
[manifest: "${DOCKER_REGISTRY_BASENAME}:armv7l-develop",
arch: 'arm', os: 'linux', osfeatures: [], variant: 'v7'],
[manifest: "${DOCKER_REGISTRY_BASENAME}:aarch64-develop",
arch: 'arm64', os: 'linux', osfeatures: [], variant: '']
arch: 'amd64', os: 'linux', osfeatures: [], variant: '']
])
withCredentials([usernamePassword(credentialsId: 'docker-hub-credentials', usernameVariable: 'login', passwordVariable: 'password')]) {
manifest.manifestPush("${DOCKER_REGISTRY_BASENAME}:develop", login, password)
Expand All @@ -89,17 +83,11 @@ def doReleaseBuild() {
}
if (manifest.manifestSupportEnabled()) {
manifest.manifestCreate("${DOCKER_REGISTRY_BASENAME}:latest",
["${DOCKER_REGISTRY_BASENAME}:x86_64-latest",
"${DOCKER_REGISTRY_BASENAME}:armv7l-latest",
"${DOCKER_REGISTRY_BASENAME}:aarch64-latest"])
["${DOCKER_REGISTRY_BASENAME}:x86_64-latest"])
manifest.manifestAnnotate("${DOCKER_REGISTRY_BASENAME}:latest",
[
[manifest: "${DOCKER_REGISTRY_BASENAME}:x86_64-latest",
arch: 'amd64', os: 'linux', osfeatures: [], variant: ''],
[manifest: "${DOCKER_REGISTRY_BASENAME}:armv7l-latest",
arch: 'arm', os: 'linux', osfeatures: [], variant: 'v7'],
[manifest: "${DOCKER_REGISTRY_BASENAME}:aarch64-latest",
arch: 'arm64', os: 'linux', osfeatures: [], variant: '']
arch: 'amd64', os: 'linux', osfeatures: [], variant: '']
])
withCredentials([usernamePassword(credentialsId: 'docker-hub-credentials', usernameVariable: 'login', passwordVariable: 'password')]) {
manifest.manifestPush("${DOCKER_REGISTRY_BASENAME}:latest", login, password)
Expand Down

0 comments on commit 6850928

Please sign in to comment.