Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a specific branch with GIT_URL #21

Closed
matifali opened this issue Jul 5, 2023 · 2 comments
Closed

Use a specific branch with GIT_URL #21

matifali opened this issue Jul 5, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@matifali
Copy link
Member

matifali commented Jul 5, 2023

It would be nice if we could use a specific branch
e.g.

docker run -it --rm \
    -v /tmp/envbuilder:/workspaces \
    -e GIT_URL=https://github.com/coder/coder/tree/matifali/devcontainer \
    -e INIT_SCRIPT=bash \
    ghcr.io/coder/envbuilder
@matifali matifali added the enhancement New feature or request label Jul 5, 2023
@kylecarbs
Copy link
Member

@matifali you can use #refs/heads/<branch> to specify a custom reference!

@kylecarbs
Copy link
Member

We should document this.

@matifali matifali added documentation Improvements or additions to documentation and removed enhancement New feature or request labels Jan 30, 2024
@matifali matifali closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants