self update openvscode-server to latest version (#227)

* Self-Updates to latest version on Redeploy

* made token variable optional

Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com>

Co-authored-by: Milo <50248166+Milo123459@users.noreply.github.com>
This commit is contained in:
GrimZZZ-404
2022-01-05 05:35:04 +05:30
committed by GitHub
parent aeb65c306c
commit 3fec5b27bd
2 changed files with 5 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
# created by GrimZZZ-404 & Milo123459
ARG RELEASE_TAG=latest PORT TOKEN
FROM gitpod/openvscode-server:${RELEASE_TAG}
ENTRYPOINT [ "/bin/sh", "-c", "exec ${OPENVSCODE_SERVER_ROOT}/server.sh --port ${PORT} --connection-token ${TOKEN}", "--" ]

View File

@@ -12,8 +12,7 @@ tags:
This example is for the [OpenVSCode Server](https://github.com/gitpod-io/openvscode-server), a version of VS Code that runs a server on a remote machine and allows access through a modern web browser. It's based on the very same architecture used by [Gitpod](https://www.gitpod.io) or [GitHub Codespaces](https://github.com) at scale.
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2Fgitpod-io%2Fopenvscode-releases&envs=RELEASE_TAG%2CPORT&RELEASE_TAGDefault=openvscode-server-v1.60.0&PORTDefault=3000)
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template?template=https%3A%2F%2Fgithub.com%2Frailwayapp%2Fexamples%2Ftree%2Fmaster%2Fexamples%2Fopenvscode-server&envs=PORT%2CTOKEN%2CRELEASE_TAG&optionalEnvs=TOKEN&TOKENDesc=Connection+token+-+leave+blank+to+automatically+geneate+one.&RELEASE_TAGDesc=Use+%22latest%22+for+the+latest+stable+release+and+%22insiders%22+for+the+latest+insider+release&PORTDefault=3000&RELEASE_TAGDefault=latest)
## ✨ Features
- VS Code in a browser