flownative/Docker Publish SemVer Tags

Tag and publish a Docker image according to Semantic Versioning

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Jan 27, 2020
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: flownative/action-docker-publish-semver@e948846c8478850a2b79e29d695223346d6d57c8 # v1.2.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
tag_refThe full tag reference. This must be a semver tag ref of an existing tagged image. For example, `refs/tags/v1.2.5+12`yes""
tag_latestIf a "latest" tag should also be created and published. Allowed values: "yes", "no", "true", "false"notrue
tag_customIf a custom tag should also be created and published. If not empty, the image will be tagged with the value of this option.no""
source_image_nameThe full source image name (to be built), without tag. For example, `docker.pkg.github.com/flownative/docker-magic-image/magic-image`yes""
source_registry_usernameUsername for the source registryyes""
source_registry_passwordPassword for the source registryyes""
source_registry_endpointEndpoint of the source registry. For example, `https://docker.pkg.github.com/v2/`nohttps://docker.pkg.github.com/v2/
target_image_nameThe full target image name, without tag. For example, `docker.io/flownative/magic-image`yes""
target_registry_usernameUsername for the target registryyes""
target_registry_passwordPassword for the target registryyes""
target_registry_endpointEndpoint of the target registry. For example, `https://index.docker.io/v1/`nohttps://index.docker.io/v1/
namedescription
image_tagThe full tag of the Docker image, e.g. "1.2.3+42" or "2.12.19-beta1+23", or ...
image_tag_majorMajor version part of the image tag, e.g. "1" if the version was 1.2.3+42
image_tag_minorMinor version part of the image tag, e.g. "2" if the version was 1.2.3+42
image_tag_patchPatch version part of the image tag, e.g. "3" if the version was 1.2.3+42
image_tag_patch_with_pre_releasePatch version part with suffix, e.g. "3+42" if the version was 1.2.3+42