flownative/Docker Publish SemVer Tags
Tag and publish a Docker image according to Semantic Versioning
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jan 27, 2020
- License
- MIT
Pinned Snippet
uses: flownative/action-docker-publish-semver@e948846c8478850a2b79e29d695223346d6d57c8 # v1.2.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| tag_ref | The 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_latest | If a "latest" tag should also be created and published. Allowed values: "yes", "no", "true", "false" | no | true |
| tag_custom | If 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_name | The full source image name (to be built), without tag. For example, `docker.pkg.github.com/flownative/docker-magic-image/magic-image` | yes | "" |
| source_registry_username | Username for the source registry | yes | "" |
| source_registry_password | Password for the source registry | yes | "" |
| source_registry_endpoint | Endpoint of the source registry. For example, `https://docker.pkg.github.com/v2/` | no | https://docker.pkg.github.com/v2/ |
| target_image_name | The full target image name, without tag. For example, `docker.io/flownative/magic-image` | yes | "" |
| target_registry_username | Username for the target registry | yes | "" |
| target_registry_password | Password for the target registry | yes | "" |
| target_registry_endpoint | Endpoint of the target registry. For example, `https://index.docker.io/v1/` | no | https://index.docker.io/v1/ |
Outputs
| name | description |
|---|---|
| image_tag | The full tag of the Docker image, e.g. "1.2.3+42" or "2.12.19-beta1+23", or ... |
| image_tag_major | Major version part of the image tag, e.g. "1" if the version was 1.2.3+42 |
| image_tag_minor | Minor version part of the image tag, e.g. "2" if the version was 1.2.3+42 |
| image_tag_patch | Patch version part of the image tag, e.g. "3" if the version was 1.2.3+42 |
| image_tag_patch_with_pre_release | Patch version part with suffix, e.g. "3+42" if the version was 1.2.3+42 |