Skip to content

hulloitskai/generate-docker-tags-action

Repository files navigation

generate-docker-tags-action

A GitHub action to automatically generates Docker tags from the action environment.

Build Status

# ...

steps:
  # ...
  - name: Generate tags
    id: generate-tags
    uses: stevenxie/[email protected]
    with:
      repo: my_repo
  - name: Build and push
    uses: docker/build-push-action@v2
    with:
      # ...
      tags: ${{ steps.generate-tags.outputs.tags }}
  # ...

Usage

Inputs

Name Description
repo The repository to generate tags for.

Outputs

Name Description
tags The generated tags, as comma-separated values.

About

A GitHub action to generate Docker tags.

Resources

License

Stars

Watchers

Forks

Packages

No packages published