Description Usage Arguments Value Related Functions and Methods See Also
Helpful to quickly run an image locally or deploy it.
See the
GitHub Packages for Docker documentation
for details.
Forms a URL of the form
docker.pkg.github.com/OWNER/REPOSITORY/IMAGE_NAME:VERSION
Notice how, different from Docker Hub,
docker images on GitHub Packages have an IMAGE_NAME
appended to the familiar OWNER/REPOSITORY
pattern.
These IMAGE_NAME
s are immutable (cannot be changed nor deleted)
and must be unique per GitHub repository.
1 2 3 4 5 6 7 8 9 | gh_pkgs_image_url(
image_name = gh_pkgs_image_name(target = "runtime"),
version = gh_pkgs_image_version(),
repo_spec = gh_repo_spec()
)
gh_pkgs_image_name(target = c("buildtime", "runtime"))
gh_pkgs_image_version()
|
image_name, version |
Image name and version as strings. Defaults to muggle convention. |
repo_spec |
GitHub repo specification in this form: |
target |
Build target for multistage muggle builds.
By convention, for a package |
character string
gh_pkgs_image_name
: Get the docker image name conventionally used in muggle projects
gh_pkgs_image_version
: Get the sha of the latest git commit
if on GitHub Actions,
or the head reference (the branch or tag) otherwise
(not recommended for reproducibility).
Other compute environment functions:
install_sysdeps()
,
lib_cache_path
,
use_onbuild_image()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.