Skip to content

Commit 369eb59

Browse files
authored
Merge pull request #480 from crazy-max/back-to-sha-7
back to commit sha length of 7
2 parents 8cb0002 + 7d870ce commit 369eb59

File tree

5 files changed

+74
-74
lines changed

5 files changed

+74
-74
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,11 @@ So it can be used with our [Docker Build Push action](https://github.com/docker/
361361

362362
### environment variables
363363

364-
| Name | Type | Description |
365-
|--------------------------------------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------|
366-
| `DOCKER_METADATA_PR_HEAD_SHA` | Bool | If `true`, set associated head SHA instead of commit SHA that triggered the workflow on pull request event |
367-
| `DOCKER_METADATA_SHORT_SHA_LENGTH` | Number | Specifies the length of the [short commit SHA](#typesha) to ensure uniqueness. Default is `12`, but can be increased for larger repositories. |
368-
| `DOCKER_METADATA_ANNOTATIONS_LEVELS` | String | Comma separated list of annotations levels to set for annotations output separated (default `manifest`) |
364+
| Name | Type | Description |
365+
|--------------------------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------|
366+
| `DOCKER_METADATA_PR_HEAD_SHA` | Bool | If `true`, set associated head SHA instead of commit SHA that triggered the workflow on pull request event |
367+
| `DOCKER_METADATA_SHORT_SHA_LENGTH` | Number | Specifies the length of the [short commit SHA](#typesha) to ensure uniqueness. Default is `7`, but can be increased for larger repositories. |
368+
| `DOCKER_METADATA_ANNOTATIONS_LEVELS` | String | Comma separated list of annotations levels to set for annotations output separated (default `manifest`) |
369369

370370
## `context` input
371371

@@ -725,9 +725,9 @@ tags: |
725725
```
726726

727727
Output Git short commit (or long if specified) as Docker tag like
728-
`sha-860c1904a1ce`.
728+
`sha-860c190`.
729729

730-
By default, the length of the short commit SHA is `12` characters. You can
730+
By default, the length of the short commit SHA is `7` characters. You can
731731
increase this length for larger repositories by setting the
732732
[`DOCKER_METADATA_SHORT_SHA_LENGTH` environment variable](#environment-variables):
733733

@@ -742,7 +742,7 @@ increase this length for larger repositories by setting the
742742
tags: |
743743
type=sha
744744
env:
745-
DOCKER_METADATA_SHORT_SHA_LENGTH: 16
745+
DOCKER_METADATA_SHORT_SHA_LENGTH: 12
746746
```
747747

748748
Extended attributes and default values:

0 commit comments

Comments
 (0)