Skip to content

Commit 8a66b79

Browse files
ArthurSensroboquat
authored andcommitted
werft/post-process: Configure different registry facade DNS for Harvester previews
Signed-off-by: ArthurSens <[email protected]>
1 parent ddd3ced commit 8a66b79

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.werft/post-process.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ while [ "$i" -le "$DOCS" ]; do
179179
# is expected to be reg.<branch-name-with-dashes>.staging.gitpod-dev.com:$REG_DAEMON_PORT
180180
# Change the port we use to connect to ws-daemon
181181
REGISTRY_FACADE_HOST="reg.$DEV_BRANCH.staging.gitpod-dev.com:$REG_DAEMON_PORT"
182+
if [[ -v WITH_VM ]]; then
183+
REGISTRY_FACADE_HOST="reg.$DEV_BRANCH.preview.gitpod-dev.com:$REG_DAEMON_PORT"
184+
fi
182185
yq r /tmp/"$NAME"overrides.yaml 'data.[config.json]' \
183186
| jq --arg REGISTRY_FACADE_HOST "$REGISTRY_FACADE_HOST" '.manager.registryFacadeHost = $REGISTRY_FACADE_HOST' \
184187
| jq ".manager.wsdaemon.port = $WS_DAEMON_PORT" > /tmp/"$NAME"-cm-overrides.json

0 commit comments

Comments
 (0)