From ac165729e2bd5860fc9c247c3def99301d7b3aa4 Mon Sep 17 00:00:00 2001 From: mustard Date: Fri, 16 Sep 2022 05:40:17 +0000 Subject: [PATCH] [code] replace version during build time --- components/ide/code/leeway.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/ide/code/leeway.Dockerfile b/components/ide/code/leeway.Dockerfile index 7442e9ac96cd81..a8b84ab9932f07 100644 --- a/components/ide/code/leeway.Dockerfile +++ b/components/ide/code/leeway.Dockerfile @@ -71,7 +71,8 @@ RUN yarn --cwd extensions compile \ # Check pkg/blobserve/blobserve.go, `inlineVars` method RUN cp /vscode-web/out/vs/gitpod/browser/workbench/workbench.html /vscode-web/index.html \ && cp /vscode-web/out/vs/gitpod/browser/workbench/callback.html /vscode-web/callback.html \ - && sed -i -e 's#static/##g' /vscode-web/index.html + && sed -i -e 's#static/##g' /vscode-web/index.html \ + && sed -i -e "s/{{VERSION}}/$CODE_QUALITY-$CODE_COMMIT/g" /vscode-web/index.html # cli config: alises to gitpod-code RUN cp /vscode-reh-linux-x64/bin/remote-cli/gitpod-code /vscode-reh-linux-x64/bin/remote-cli/code \