2020-10-25 01:25:23 +00:00
|
|
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
2020-10-25 02:26:17 +00:00
|
|
|
name: 'Docker Meta'
|
2020-10-25 01:25:23 +00: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 14:32:14 +00:00
|
|
|
description: 'Enable edge branch tagging'
|
|
|
|
default: 'false'
|
|
|
|
required: false
|
|
|
|
tag-edge-branch:
|
2020-10-25 02:21:46 +00:00
|
|
|
description: 'Branch that will be tagged as edge (default repo.default_branch)'
|
2020-10-25 01:25:23 +00:00
|
|
|
required: false
|
2020-10-25 14:13:43 +00:00
|
|
|
tag-schedule:
|
|
|
|
description: 'Handlebars template to apply to schedule tag'
|
|
|
|
default: 'nightly'
|
|
|
|
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
|
|
|
|
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'
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'node12'
|
|
|
|
main: 'dist/index.js'
|