From 0644bd0af41b5ae06026870ba73d657c0f92b4ea Mon Sep 17 00:00:00 2001 From: Pudong Zheng Date: Fri, 26 Apr 2024 17:44:46 +0000 Subject: [PATCH] hot-deploy --- components/ide/jetbrains/backend-plugin/hot-deploy.sh | 2 +- components/ide/jetbrains/image/hot-deploy.sh | 2 +- components/ide/jetbrains/launcher/hot-deploy.sh | 2 +- scripts/ws-deploy.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/ide/jetbrains/backend-plugin/hot-deploy.sh b/components/ide/jetbrains/backend-plugin/hot-deploy.sh index 379b54e56bd906..bdffe1ec044bcb 100755 --- a/components/ide/jetbrains/backend-plugin/hot-deploy.sh +++ b/components/ide/jetbrains/backend-plugin/hot-deploy.sh @@ -17,7 +17,7 @@ echo "Image Version: $version" bldfn="/tmp/build-$version.tar.gz" docker ps &> /dev/null || (echo "You need a working Docker daemon. Maybe set DOCKER_HOST?"; exit 1) -leeway build -DnoVerifyJBPlugin=true -Dversion="$version" -DimageRepoBase=eu.gcr.io/gitpod-core-dev/build .:"$qualifier" --save "$bldfn" +leeway build -DnoVerifyJBPlugin=true -Dversion="$version" -DimageRepoBase=eu.gcr.io/gitpod-dev-preview/build .:"$qualifier" --save "$bldfn" dev_image="$(tar xfO "$bldfn" ./imgnames.txt | head -n1)" echo "Dev Image: $dev_image" diff --git a/components/ide/jetbrains/image/hot-deploy.sh b/components/ide/jetbrains/image/hot-deploy.sh index 1da9ba05b44feb..b32631a1778f75 100755 --- a/components/ide/jetbrains/image/hot-deploy.sh +++ b/components/ide/jetbrains/image/hot-deploy.sh @@ -37,7 +37,7 @@ docker ps &> /dev/null || (echo "You need a working Docker daemon. Maybe set DOC IDE_VERSIONS_JSON=$(bash "$ROOT_DIR/components/ide/jetbrains/image/resolve-latest-ide-version.sh" "$product_code") IDE_BUILD_VERSION=$(echo "$IDE_VERSIONS_JSON" | jq -r .IDE_BUILD_VERSION) IDE_VERSION=$(echo "$IDE_VERSIONS_JSON" | jq -r .IDE_VERSION) -leeway build -Dversion="$version" -DimageRepoBase=eu.gcr.io/gitpod-core-dev/build -DbuildNumber="$IDE_BUILD_VERSION" -DjbBackendVersion="$IDE_VERSION" ".:$component" --save "$bldfn" +leeway build -Dversion="$version" -DimageRepoBase=eu.gcr.io/gitpod-dev-preview/build -DbuildNumber="$IDE_BUILD_VERSION" -DjbBackendVersion="$IDE_VERSION" ".:$component" --save "$bldfn" dev_image="$(tar xfO "$bldfn" ./imgnames.txt | head -n1)" echo "Dev Image: $dev_image" diff --git a/components/ide/jetbrains/launcher/hot-deploy.sh b/components/ide/jetbrains/launcher/hot-deploy.sh index 85b9ec74271bde..c4f0964c920d8a 100755 --- a/components/ide/jetbrains/launcher/hot-deploy.sh +++ b/components/ide/jetbrains/launcher/hot-deploy.sh @@ -14,7 +14,7 @@ echo "Image Version: $version" bldfn="/tmp/build-$version.tar.gz" docker ps &> /dev/null || (echo "You need a working Docker daemon. Maybe set DOCKER_HOST?"; exit 1) -leeway build -Dversion="$version" -DimageRepoBase=eu.gcr.io/gitpod-core-dev/build .:docker --save "$bldfn" +leeway build -Dversion="$version" -DimageRepoBase=eu.gcr.io/gitpod-dev-preview/build .:docker --save "$bldfn" dev_image="$(tar xfO "$bldfn" ./imgnames.txt | head -n1)" echo "Dev Image: $dev_image" diff --git a/scripts/ws-deploy.sh b/scripts/ws-deploy.sh index 61ade2fe980447..f66e3e0db29db4 100755 --- a/scripts/ws-deploy.sh +++ b/scripts/ws-deploy.sh @@ -14,7 +14,7 @@ version="dev-$(date +%F_T"%H-%M-%S")" bldfn="/tmp/build-$version.tar.gz" docker ps &> /dev/null || (echo "You need a working Docker daemon. Maybe set DOCKER_HOST?"; exit 1) -leeway build .:docker -Dversion="$version" -DimageRepoBase=eu.gcr.io/gitpod-core-dev/dev --save "$bldfn" --dont-test +leeway build .:docker -Dversion="$version" -DimageRepoBase=eu.gcr.io/gitpod-dev-preview/dev --save "$bldfn" --dont-test dev_image="$(tar xfO "$bldfn" ./imgnames.txt | head -n1)" kubectl set image "$resource_type" "$resource_name" "$resource_name"="$dev_image"