2020-10-25 09:25:23 +08:00
|
|
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
2020-10-25 10:26:17 +08:00
|
|
|
name: 'Docker Meta'
|
2020-10-25 09:25:23 +08: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
|
|
|
|
tag-sha:
|
|
|
|
description: 'Add git short SHA as Docker tag'
|
|
|
|
default: 'false'
|
|
|
|
required: false
|
|
|
|
tag-edge:
|
2020-10-25 22:32:14 +08:00
|
|
|
description: 'Enable edge branch tagging'
|
|
|
|
default: 'false'
|
|
|
|
required: false
|
|
|
|
tag-edge-branch:
|
2020-10-25 10:21:46 +08:00
|
|
|
description: 'Branch that will be tagged as edge (default repo.default_branch)'
|
2020-10-25 09:25:23 +08:00
|
|
|
required: false
|
2020-10-27 07:57:32 +08:00
|
|
|
tag-match:
|
|
|
|
description: 'RegExp to match against a Git tag and use match group as Docker tag'
|
2020-10-26 08:39:21 +08:00
|
|
|
required: false
|
2020-10-27 09:32:26 +08:00
|
|
|
tag-match-group:
|
|
|
|
description: 'Group to get if tag-match matches (default 0)'
|
|
|
|
default: '0'
|
|
|
|
required: false
|
2020-10-27 07:57:32 +08:00
|
|
|
tag-match-latest:
|
2020-11-01 02:52:55 +08:00
|
|
|
description: 'Set latest Docker tag if tag-match matches or on Git tag event'
|
2020-10-27 07:57:32 +08:00
|
|
|
default: 'true'
|
2020-10-27 00:51:00 +08:00
|
|
|
required: false
|
2020-10-25 22:13:43 +08:00
|
|
|
tag-schedule:
|
2020-10-27 00:58:13 +08:00
|
|
|
description: 'Template to apply to schedule tag'
|
2020-10-25 22:13:43 +08:00
|
|
|
default: 'nightly'
|
|
|
|
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
|
|
|
|
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'
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'node12'
|
|
|
|
main: 'dist/index.js'
|