metadata-action/action.yml

69 lines
1.9 KiB
YAML
Raw Normal View History

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