A GitHub action to automatically generates Docker tags from the action environment.
# ...
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 }}
# ...
Name | Description |
---|---|
repo |
The repository to generate tags for. |
Name | Description |
---|---|
tags |
The generated tags, as comma-separated values. |