2020-10-25 01:25:23 +00:00
|
|
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
2021-05-10 13:39:06 +00:00
|
|
|
name: 'Docker Metadata action'
|
2020-10-25 01:25:23 +00:00
|
|
|
description: "GitHub Action to extract metadata (tags, labels) for Docker"
|
2021-05-07 23:41:46 +00:00
|
|
|
author: 'docker'
|
2020-10-25 01:25:23 +00:00
|
|
|
branding:
|
2021-05-07 23:41:46 +00:00
|
|
|
icon: 'anchor'
|
2020-10-25 01:25:23 +00:00
|
|
|
color: 'blue'
|
|
|
|
|
|
|
|
inputs:
|
2022-12-15 13:46:34 +00:00
|
|
|
context:
|
|
|
|
description: 'Where to get context data. Allowed options are "workflow" (default), "git".'
|
|
|
|
default: "workflow"
|
|
|
|
required: true
|
2020-10-25 01:25:23 +00:00
|
|
|
images:
|
|
|
|
description: 'List of Docker images to use as base name for tags'
|
2023-11-30 09:41:18 +00:00
|
|
|
required: false
|
2021-03-29 11:04:53 +00:00
|
|
|
tags:
|
|
|
|
description: 'List of tags as key-value pair attributes'
|
2020-12-04 17:12:39 +00:00
|
|
|
required: false
|
2021-03-29 11:04:53 +00:00
|
|
|
flavor:
|
|
|
|
description: 'Flavors to apply'
|
2020-12-04 17:12:39 +00:00
|
|
|
required: false
|
2021-03-29 11:04:53 +00:00
|
|
|
labels:
|
2020-12-24 13:06:20 +00:00
|
|
|
description: 'List of custom labels'
|
|
|
|
required: false
|
2023-11-30 14:03:24 +00:00
|
|
|
annotations:
|
|
|
|
description: 'List of custom annotations'
|
|
|
|
required: false
|
2020-10-25 01:25:23 +00:00
|
|
|
sep-tags:
|
|
|
|
description: 'Separator to use for tags output (default \n)'
|
|
|
|
required: false
|
|
|
|
sep-labels:
|
|
|
|
description: 'Separator to use for labels output (default \n)'
|
|
|
|
required: false
|
2023-11-30 14:03:24 +00:00
|
|
|
sep-annotations:
|
|
|
|
description: 'Separator to use for annotations output (default \n)'
|
|
|
|
required: false
|
2021-04-29 22:51:48 +00:00
|
|
|
bake-target:
|
2021-05-10 13:54:35 +00:00
|
|
|
description: 'Bake target name (default docker-metadata-action)'
|
2021-04-29 22:51:48 +00:00
|
|
|
required: false
|
2020-10-25 01:25:23 +00:00
|
|
|
github-token:
|
|
|
|
description: 'GitHub Token as provided by secrets'
|
|
|
|
default: ${{ github.token }}
|
|
|
|
required: true
|
|
|
|
|
|
|
|
outputs:
|
2020-10-25 01:40:42 +00:00
|
|
|
version:
|
|
|
|
description: 'Generated Docker image version'
|
2020-10-25 01:25:23 +00:00
|
|
|
tags:
|
|
|
|
description: 'Generated Docker tags'
|
|
|
|
labels:
|
|
|
|
description: 'Generated Docker labels'
|
2023-11-27 10:39:37 +00:00
|
|
|
annotations:
|
|
|
|
description: 'Generated annotations'
|
2022-03-07 07:25:24 +00:00
|
|
|
json:
|
|
|
|
description: 'JSON output of tags and labels'
|
2023-11-22 21:46:29 +00:00
|
|
|
bake-file-tags:
|
|
|
|
description: 'Bake definition file with tags'
|
|
|
|
bake-file-labels:
|
|
|
|
description: 'Bake definition file with labels'
|
2023-11-27 10:39:37 +00:00
|
|
|
bake-file-annotations:
|
|
|
|
description: 'Bake definiton file with annotations'
|
2023-11-22 21:46:29 +00:00
|
|
|
bake-file:
|
|
|
|
description: 'Bake definition file with tags and labels'
|
2020-10-25 01:25:23 +00:00
|
|
|
|
|
|
|
runs:
|
2023-09-07 08:27:29 +00:00
|
|
|
using: 'node20'
|
2020-10-25 01:25:23 +00:00
|
|
|
main: 'dist/index.js'
|