https://github.com/zazuko/action-docker-meta
GitHub Action to provide Docker metadata (tags, labels, …)
https://github.com/zazuko/action-docker-meta
docker github-actions labels metadata tags
Last synced: about 1 month ago
JSON representation
GitHub Action to provide Docker metadata (tags, labels, …)
- Host: GitHub
- URL: https://github.com/zazuko/action-docker-meta
- Owner: zazuko
- Created: 2020-11-30T15:18:37.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-20T10:21:09.000Z (about 4 years ago)
- Last Synced: 2025-07-27T14:58:21.267Z (11 months ago)
- Topics: docker, github-actions, labels, metadata, tags
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker meta action
This action outputs some Docker metadata, like tags and labels.
## Inputs
### `default-branch`
The name of the default Git branch.
This will be filled in automatically if not provided.
### `images`
**Required** Docker images separated using commas.
### `strip-tag-prefix`
The prefix to strip from the tag.
For example, for `prefix/v1.2.3` you can use `prefix/`.
### `include-pipeline-id`
Include a tag that contains the branch name and the pipeline ID if set to `true`.
## Outputs
### `tags`
A list of tags separated using commas.
### `labels`
A list of labels separated using commas.
## Example usage
```yaml
- name: Docker meta
uses: zazuko/action-docker-meta@main
id: docker_meta
with:
images: ghcr.io/org/image
- name: Build and push Docker images
uses: docker/build-push-action@v2.1.0
with:
# ...
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
```