https://github.com/mkumatag/container-image-updater-action
https://github.com/mkumatag/container-image-updater-action
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mkumatag/container-image-updater-action
- Owner: mkumatag
- License: apache-2.0
- Created: 2021-10-31T05:05:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T06:00:44.000Z (over 2 years ago)
- Last Synced: 2024-10-08T09:34:40.035Z (over 1 year ago)
- Language: Go
- Size: 60.5 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# container-image-updater
This action prints "true" if image is required to update based on the base image update.
## Inputs
| Name | Type | Description |
|---------------------|----------|------------------------------------|
| `base-image` | Required | Base image of the image |
| `image` | Required | The container image to be monitored, based on `base-image` |
| `base-reg-username`,
`base-reg-password` | Optional | Image registry credential to access base image.|
| `image-reg-username`,
`image-reg-password` | Optional | Image registry credential to access image to be monitored.|
## Outputs
| Name | Description |
|---------------------|------------------------------------|
| `needs-update` | Returns `true` or `false`. |
## Example usage
### Public images
```yaml
uses: mkumatag/container-image-updater-action@v1.0.6
with:
base-image: 'alpine:3.14'
image: 'alpine:3.13'
```
### Private images
```yaml
uses: mkumatag/container-image-updater-action@v1.0.6
with:
base-image: 'alpine:3.14'
image: 'alpine:3.13'
base-reg-username: someuser
base-reg-password: somepassword
image-reg-username: someuser
image-reg-password: somepassword
```
## Blog:
https://medium.com/@manjunathkumatagi/streamlining-docker-image-updates-monitoring-and-rebuilding-with-github-plugin-c244dc85fb6a