2020-10-25 02:25:23 +01:00
|
|
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
2020-10-25 03:26:17 +01:00
|
|
|
name: 'Docker Meta'
|
2020-10-25 02:25:23 +01:00
|
|
|
description: "GitHub Action to extract metadata (tags, labels) for Docker"
|
|
|
|
author: 'crazy-max'
|
|
|
|
branding:
|
|
|
|
color: 'blue'
|
|
|
|
icon: 'layers'
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
images:
|
|
|
|
description: 'List of Docker images to use as base name for tags'
|
|
|
|
required: true
|
2021-03-29 13:04:53 +02:00
|
|
|
tags:
|
|
|
|
description: 'List of tags as key-value pair attributes'
|
2020-12-04 18:12:39 +01:00
|
|
|
required: false
|
2021-03-29 13:04:53 +02:00
|
|
|
flavor:
|
|
|
|
description: 'Flavors to apply'
|
2020-12-04 18:12:39 +01:00
|
|
|
required: false
|
2021-03-29 13:04:53 +02:00
|
|
|
labels:
|
2020-12-24 14:06:20 +01:00
|
|
|
description: 'List of custom labels'
|
|
|
|
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
|
2021-04-30 00:51:48 +02:00
|
|
|
bake-target:
|
|
|
|
description: 'Bake target name (default ghaction-docker-meta)'
|
|
|
|
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'
|
2020-12-24 04:13:41 +01:00
|
|
|
bake-file:
|
|
|
|
description: 'Bake definiton file'
|
2020-10-25 02:25:23 +01:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'node12'
|
|
|
|
main: 'dist/index.js'
|