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

Build Docker container in GitHub actions #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

obbardc
Copy link

@obbardc obbardc commented Aug 21, 2022

For each branch, build a docker container inside GitHub
actions and push the resultant image to GitHub container
registry.

Builds from the default branch are tagged as latest, while
branches and tags also are pushed to the container registry
to keep the container history tied to the repository
metadata.

Signed-off-by: Christopher Obbard [email protected]

an example run is available at: https://github.com/obbardc/groceri.es/runs/7938095796?check_suite_focus=true
an example container is available from: docker pull ghcr.io/obbardc/groceri.es:wip-obbardc-build-docker-container-ci

For each branch, build a docker container inside GitHub
actions and push the resultant image to GitHub container
registry.

Builds from the default branch are tagged as latest, while
branches and tags also are pushed to the container registry
to keep the container history tied to the repository
metadata.

Signed-off-by: Christopher Obbard <[email protected]>
@obbardc obbardc marked this pull request as ready for review August 21, 2022 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant