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