See here for more expansive use of URL parameters
Run a docker container built from a github repo at the tag defined in the URL
This is for container metaframes.
You can set any URL parameters, they are passed in as env vars
URL parameters passed in this way can also be access by the docker command
Hard code the git ref (branch | tag | commit)
This repo below at this exact commit location:
https://github.com/ulysseherbach/harissa/tree/affeff5e706b446358f4b619058c6e93afe8836f
can be set in the container metaframe:
But a more flexible way is to set the git-ref
in the URL:
The git ref from the main URL
Append tree/${git-ref}
to your git repo URL for example:
The page URL git-ref
query param is then dynamically injected into to the container git repo URL: your container is now built from an exact git version.
This way the metapage is a “view” of the repo, with state, able to move along the history and branches of the git repository, simply via changing the URL
You are now in the driving seat of a repository