mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-06-27 21:05:53 +00:00
Add global expression "date"
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
a67f45cb0f
commit
e4f548552d
4 changed files with 12 additions and 1 deletions
|
@ -585,16 +585,18 @@ describe('push', () => {
|
|||
images: ['user/app'],
|
||||
tags: [
|
||||
`type=raw,value=mytag-{{branch}}`,
|
||||
`type=raw,value=mytag-{{date 'YYYYMMDD'}}`,
|
||||
`type=raw,value=mytag-{{tag}}`
|
||||
],
|
||||
} as Inputs,
|
||||
{
|
||||
main: 'mytag-master',
|
||||
partial: ['mytag-'],
|
||||
partial: ['mytag-20200110', 'mytag-'],
|
||||
latest: false
|
||||
} as Version,
|
||||
[
|
||||
'user/app:mytag-master',
|
||||
'user/app:mytag-20200110',
|
||||
'user/app:mytag-'
|
||||
],
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue