RED-3800 use knecon

This commit is contained in:
Dan Percic 2023-05-16 20:55:22 +03:00
parent 7a1bab4c44
commit f0506063e7
2 changed files with 5 additions and 7 deletions

View File

@ -95,7 +95,7 @@ public class PlanSpec {
// create tag with this version
new VcsTagTask().tagName("${bamboo.inject.APP_VERSION}").repository("RED / ui")
).dockerConfiguration(
new DockerConfiguration().image("nexus.iqser.com:5001/infra/release_build:4.2.0")
new DockerConfiguration().image("nexus.knecon.com:5001/infra/release_build:4.2.0")
.volume("/var/run/docker.sock", "/var/run/docker.sock"))
.artifacts(new Artifact("version").location(".").copyPattern("**/version.properties").shared(true),
new Artifact("paligo-theme.tar.gz").location(".").copyPattern("**/paligo-theme.tar.gz").shared(true));
@ -119,10 +119,9 @@ public class PlanSpec {
new VcsBranchTask().branchName("release/${bamboo.inject.APP_VERSION}").repository("RED / ui"))
.dockerConfiguration(new DockerConfiguration().image("nexus.iqser.com:5001/infra/release_build:2.9.1")
.dockerConfiguration(new DockerConfiguration().image("nexus.knecon.com:5001/infra/release_build:2.9.1")
.volume("/var/run/docker.sock", "/var/run/docker.sock"));
}
}

View File

@ -2,7 +2,7 @@
set -e
imageName="nexus.iqser.com:5001/red/$PROJECT"
imageName="nexus.knecon.com:5001/red/$PROJECT"
dockerfileLocation="docker/$PROJECT/Dockerfile"
echo "submodule status"
@ -33,7 +33,7 @@ then
echo "APP_VERSION=${version}" > version.properties
echo "Publishing Images with version $version"
echo "$BAMBOO_DOWNLOAD_PASS" | docker login -u "$BAMBOO_DOWNLOAD_USER" --password-stdin nexus.iqser.com:5001
echo "$BAMBOO_DOWNLOAD_PASS" | docker login -u "$BAMBOO_DOWNLOAD_USER" --password-stdin nexus.knecon.com:5001
# re-build intermediate build stage from layer cache, run image and get artifacts ( paligo theme )
docker build --build-arg bamboo_sonarqube_api_token_secret=${bamboo_sonarqube_api_token_secret} --target builder -t builder-image:latest -f "$dockerfileLocation" .
@ -51,7 +51,7 @@ else
if [[ ! -z "$bamboo_version_tag" ]]
then
echo "$BAMBOO_DOWNLOAD_PASS" | docker login -u "$BAMBOO_DOWNLOAD_USER" --password-stdin nexus.iqser.com:5001
echo "$BAMBOO_DOWNLOAD_PASS" | docker login -u "$BAMBOO_DOWNLOAD_USER" --password-stdin nexus.knecon.com:5001
echo "Pushing custom tag: $bamboo_version_tag"
docker tag "$imageName:latest" "$imageName:$bamboo_version_tag"
docker push "$imageName:$bamboo_version_tag"
@ -59,4 +59,3 @@ else
fi