Skip to content

Commit

Permalink
hot-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
iQQBot committed Apr 26, 2024
1 parent 22dae4e commit 0644bd0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/ide/jetbrains/backend-plugin/hot-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion components/ide/jetbrains/image/hot-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion components/ide/jetbrains/launcher/hot-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion scripts/ws-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0644bd0

Please sign in to comment.