mirror of
https://github.com/logos-storage/github-actions.git
synced 2026-01-02 13:13:06 +00:00
parent
dcc268ee66
commit
7e01da7963
7
.github/workflows/docker-reusable.yml
vendored
7
.github/workflows/docker-reusable.yml
vendored
@ -34,6 +34,11 @@ on:
|
||||
description: Set Git short commit as Docker tag
|
||||
required: false
|
||||
type: boolean
|
||||
tag_sha_long:
|
||||
default: false
|
||||
description: Set Git long commit as Docker tag
|
||||
required: false
|
||||
type: boolean
|
||||
tag_suffix:
|
||||
default: ''
|
||||
description: Suffix for Docker images tag
|
||||
@ -68,6 +73,7 @@ env:
|
||||
BUILD_ARGS: ${{ inputs.build_args }}
|
||||
TAG_LATEST: ${{ inputs.tag_latest }}
|
||||
TAG_SHA: ${{ inputs.tag_sha }}
|
||||
TAG_SHA_LONG: ${{ inputs.tag_sha_long }}
|
||||
TAG_SUFFIX: ${{ inputs.tag_suffix }}
|
||||
CHECKOUT_FETCH_DEPTH: ${{ inputs.checkout-fetch-depth }}
|
||||
CHECKOUT_FETCH_TAGS: ${{ inputs.checkout-fetch-tags }}
|
||||
@ -219,6 +225,7 @@ jobs:
|
||||
type=semver,pattern={{version}}
|
||||
type=raw,enable=${{ env.TAG_RAW }},value=latest
|
||||
type=sha,enable=${{ env.TAG_SHA }}
|
||||
type=sha,enable=${{ env.TAG_SHA_LONG }},format=long
|
||||
|
||||
- name: Docker - Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
|
||||
@ -27,6 +27,7 @@
|
||||
| `build_args` | Build arguments | `''` |
|
||||
| `tag_latest` | Set latest tag for Docker images | `true` |
|
||||
| `tag_sha` | Set Git short commit as Docker tag | `true` |
|
||||
| `tag_sha_long` | Set Git long commit as Docker tag | `false` |
|
||||
| `tag_suffix` | Suffix for Docker images tag | `''` |
|
||||
| `checkout-fetch-depth` | actions/checkout fetch-depth | `''` |
|
||||
| `checkout-fetch-tags` | actions/checkout fetch-tags | `''` |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user