3
0
Fork 0
mirror of https://gitea.com/docker/metadata-action.git synced 2024-11-25 13:39:33 +01:00
docker-metadata/action.yml

64 lines
1.8 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
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
tag-sha:
description: 'Add git short SHA as Docker tag'
default: 'false'
required: false
tag-edge:
description: 'Enable edge branch tagging'
default: 'false'
required: false
tag-edge-branch:
2020-10-25 03:21:46 +01:00
description: 'Branch that will be tagged as edge (default repo.default_branch)'
2020-10-25 02:25:23 +01:00
required: false
2020-11-18 00:39:59 +01:00
tag-semver:
description: 'Handle Git tag as semver template if possible'
required: false
tag-match:
description: 'RegExp to match against a Git tag and use match group as Docker tag'
required: false
tag-match-group:
description: 'Group to get if tag-match matches (default 0)'
default: '0'
required: false
tag-match-latest:
description: 'Set latest Docker tag if tag-match matches or on Git tag event'
default: 'true'
required: false
tag-schedule:
2020-10-26 17:58:13 +01:00
description: 'Template to apply to schedule tag'
default: 'nightly'
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
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'
runs:
using: 'node12'
main: 'dist/index.js'