ci: retag harbor photon images for helm
This commit is contained in:
parent
ba9e754868
commit
da6daa0e9e
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -109,11 +109,18 @@ spec:
|
|||||||
export PULL_BASE_FROM_DOCKERHUB=false
|
export PULL_BASE_FROM_DOCKERHUB=false
|
||||||
export BUILD_BASE=true
|
export BUILD_BASE=true
|
||||||
export BUILDTRIVYADP=false
|
export BUILDTRIVYADP=false
|
||||||
export BUILD_INSTALLER=false
|
export BUILD_INSTALLER=true
|
||||||
|
|
||||||
make compile
|
make compile
|
||||||
make build
|
make build
|
||||||
|
|
||||||
|
# Retag a few upstream image names to our internal naming convention
|
||||||
|
# (so Helm values can keep using `harbor-*` consistently).
|
||||||
|
docker tag "${REGISTRY}/prepare:${VERSIONTAG}" "${REGISTRY}/harbor-prepare:${VERSIONTAG}" || true
|
||||||
|
docker tag "${REGISTRY}/redis-photon:${VERSIONTAG}" "${REGISTRY}/harbor-redis:${VERSIONTAG}" || true
|
||||||
|
docker tag "${REGISTRY}/nginx-photon:${VERSIONTAG}" "${REGISTRY}/harbor-nginx:${VERSIONTAG}" || true
|
||||||
|
docker tag "${REGISTRY}/registry-photon:${VERSIONTAG}" "${REGISTRY}/harbor-registry:${VERSIONTAG}" || true
|
||||||
|
|
||||||
# Push every image we just built for this tag under our namespace.
|
# Push every image we just built for this tag under our namespace.
|
||||||
docker images --format '{{.Repository}}:{{.Tag}}' \
|
docker images --format '{{.Repository}}:{{.Tag}}' \
|
||||||
| awk -v ns="${REGISTRY}/" -v tag="${VERSIONTAG}" 'index($0, ns)==1 && $0 ~ ":"tag"$"' \
|
| awk -v ns="${REGISTRY}/" -v tag="${VERSIONTAG}" 'index($0, ns)==1 && $0 ~ ":"tag"$"' \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user