Skip to content

Updated docker build workflow for manual trigger and tag event#104

Merged
andrewdavidsmith merged 4 commits intomasterfrom
docker-build
Aug 14, 2023
Merged

Updated docker build workflow for manual trigger and tag event#104
andrewdavidsmith merged 4 commits intomasterfrom
docker-build

Conversation

@masarunakajima
Copy link
Copy Markdown
Member

@masarunakajima masarunakajima commented Aug 14, 2023

I update the workflow for docker build. I added some user instructions in README.md and maintainer instructions in
MAINTAINERS.md.

Updated the workflow.

This workflow is for building and possibly pushing the docker image for
a commit tagged by a version number. It is triggered either manually or by
a tag event of type v*.*.*, which is intended for new releases. Currently,
pushing to ghcr.io can happen only to commits tagged by a version number. This
is intended to associate every docker image with a version number. This means
that there is no option to push the image for the latest commit, even though
we can build the image for testing purposes.

Manual trigger

In Actions, go to Docker image build and click
"Run workflow" and choose from the following options.
Options:
- 'Build latest commit': for testing for the latest commit
- 'Build existing version': for testing a particular version
- 'Build + push existing version': for publishing a particular version

Tag event

In a tag event of type "v*..", such as new release or retagging, this work
flow is triggered to build and publish the image for the tagged version
number.

Usage

The image can be pulled by one of the following commands.

docker pull ghcr.io/smithlabcode/dnmtools:latest
docker pull ghcr.io/smithlabcode/dnmtools:<7-DIGIT SHA>
docker pull ghcr.io/smithlabcode/dnmtools:v<VERSION NUMBER> (e.g. v1.3.0)

@andrewdavidsmith andrewdavidsmith merged commit 9d72f03 into master Aug 14, 2023
@andrewdavidsmith andrewdavidsmith deleted the docker-build branch August 14, 2023 23:13
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.

2 participants