https://github.com/jacobsvante/version-tag-docker-image
Create major, minor and patch sematic version tags of an existing Docker image, utilizing info from release-please pull requests
https://github.com/jacobsvante/version-tag-docker-image
Last synced: about 1 year ago
JSON representation
Create major, minor and patch sematic version tags of an existing Docker image, utilizing info from release-please pull requests
- Host: GitHub
- URL: https://github.com/jacobsvante/version-tag-docker-image
- Owner: jacobsvante
- License: mit
- Created: 2022-08-12T06:00:39.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T11:56:41.000Z (over 3 years ago)
- Last Synced: 2024-03-15T00:00:32.480Z (about 2 years ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Description
Create major, minor and patch sematic version tags of an existing Docker image,
utilizing info from release-please pull requests.
The existing Docker image must have the commit's SHA as tag, and a corresponding
merged pull request created by release-please. Otherwise the SHA ref can't be looked up.
## Inputs
| parameter | description | required | default |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------- |
| image | Name of the docker image (e.g. `"my-namespace/my-image"`) | `true` | |
| version | Manually provided semantic version (e.g: 0.3.4) | `true` | |
| registry | Docker registry | `true` | docker.io |
| username | Docker username | `true` | |
| password | Docker password | `true` | |
| push-latest-tag | Push `latest` tag to repository, in addition to version tags | `false` | true |
| add-pr-label | Add label `"version tagged: $inputs.registry"` to the relevant release-please created pull request | `true` | true |
| pr-label-color | PR label color | `true` | #0db7ed |
| token | Token for interacting with the Github API. Default to using the special GITHUB_TOKEN. Because of limitations imposed by GitHub, this must be set if you want the setting of the PR label to trigger an event. | `true` | ${{ github.token }} |
## Outputs
| parameter | description |
| ---------- | -------------------------------------------- |
| version | The version that was passed in to the action |
| commit-sha | Commit SHA that correlates to this version |
| pr-number | PR number that correlates to this version |
## Runs
This action is a `composite` action.