This commit is contained in:
CrazyMax 2020-12-01 05:47:38 +01:00
parent c78798ed86
commit 1813dce2aa
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 30 additions and 2 deletions

View File

@ -83,9 +83,11 @@ jobs:
tag-semver:
runs-on: ubuntu-latest
steps:
- name: Checkout
-
name: Checkout
uses: actions/checkout@v2
- name: Docker meta
-
name: Docker meta
uses: ./
with:
images: |

View File

@ -737,6 +737,32 @@ describe('push tag', () => {
"org.opencontainers.image.licenses=MIT"
]
],
[
'event_tag_sometag.env',
{
images: ['ghcr.io/user/app'],
tagSemver: ['{{version}}', '{{major}}.{{minor}}', '{{major}}'],
} as Inputs,
{
main: 'sometag',
partial: [],
latest: true
} as Version,
[
'ghcr.io/user/app:sometag',
'ghcr.io/user/app:latest',
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=sometag",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071",
"org.opencontainers.image.licenses=MIT"
]
],
])('given %p event ', tagsLabelsTest);
});