actions-marketplace-validations/Docker Metadata action
GitHub Action to extract metadata (tags, labels) for Docker
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| context | Where to get context data. Allowed options are "workflow" (default), "git". | yes | workflow |
| images | List of Docker images to use as base name for tags | no | — |
| tags | List of tags as key-value pair attributes | no | — |
| flavor | Flavors to apply | no | — |
| labels | List of custom labels | no | — |
| annotations | List of custom annotations | no | — |
| sep-tags | Separator to use for tags output (default \n) | no | — |
| sep-labels | Separator to use for labels output (default \n) | no | — |
| sep-annotations | Separator to use for annotations output (default \n) | no | — |
| bake-target | Bake target name (default docker-metadata-action) | no | — |
| github-token | GitHub Token as provided by secrets | yes | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| version | Generated Docker image version |
| tags | Generated Docker tags |
| tag-names | Generated Docker tag names without image base name |
| labels | Generated Docker labels |
| annotations | Generated annotations |
| json | JSON output of tags and labels |
| bake-file-tags | Bake definition file with tags |
| bake-file-labels | Bake definition file with labels |
| bake-file-annotations | Bake definition file with annotations |
| bake-file | Bake definition file with tags and labels |