Skip to content

TomHarrop/container-build-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is based on @vsoch's amazingly useful singularity-deploy template.

Instead of building the SIF directly, my version uses a Dockerfile with the Docker build-push action to upload a Docker image to the GitHub container registry.

Right now you can only have one Dockerfile per repo, until I work out how to use the build-push action to build multiple containers.

The steps are pretty similar to @vsoch's orignal repo:

  1. Template or fork.
  2. Edit the repo:
    • Check out a new branch
    • Modify the Docker recipe (Dockerfile)
    • Update the Version file
    • Push the new branch to GitHub
  3. Open a PR for the new branch. This triggers the test build, which just builds the Docker image but doesn't push it.
  4. Once the check passes, merge the PR. This creates a release, re-builds the Docker image and uploads it to GHCR.

Notes

To get the repo to work with GHCR:

These steps allow the actions runner to authenticate with GHCR and push/pull the images.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published