From 793da0a992866539104871a6f1dfae1c496782f1 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 24 Dec 2020 16:41:37 +0100 Subject: [PATCH] Fix tests --- __tests__/meta.test.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/__tests__/meta.test.ts b/__tests__/meta.test.ts index 844a3f7..3dab864 100644 --- a/__tests__/meta.test.ts +++ b/__tests__/meta.test.ts @@ -1512,6 +1512,10 @@ describe('bake-file', () => { "org.opencontainers.image.created": "2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision": "90dd6032fac8bda1b6c4436a2e65de27961ed071", "org.opencontainers.image.licenses": "MIT" + }, + "args": { + "DOCKER_META_IMAGES": "user/app", + "DOCKER_META_VERSION": "dev", } } } @@ -1539,6 +1543,10 @@ describe('bake-file', () => { "org.opencontainers.image.created": "2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision": "90dd6032fac8bda1b6c4436a2e65de27961ed071", "org.opencontainers.image.licenses": "MIT" + }, + "args": { + "DOCKER_META_IMAGES": "user/app", + "DOCKER_META_VERSION": "dev", } } } @@ -1569,6 +1577,10 @@ describe('bake-file', () => { "org.opencontainers.image.created": "2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision": "90dd6032fac8bda1b6c4436a2e65de27961ed071", "org.opencontainers.image.licenses": "MIT" + }, + "args": { + "DOCKER_META_IMAGES": "user/app", + "DOCKER_META_VERSION": "release1", } } } @@ -1600,6 +1612,10 @@ describe('bake-file', () => { "org.opencontainers.image.created": "2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision": "90dd6032fac8bda1b6c4436a2e65de27961ed071", "org.opencontainers.image.licenses": "MIT" + }, + "args": { + "DOCKER_META_IMAGES": "user/app", + "DOCKER_META_VERSION": "20200110", } } } @@ -1640,6 +1656,10 @@ describe('bake-file', () => { "org.opencontainers.image.created": "2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision": "90dd6032fac8bda1b6c4436a2e65de27961ed071", "org.opencontainers.image.licenses": "MIT" + }, + "args": { + "DOCKER_META_IMAGES": "org/app,ghcr.io/user/app", + "DOCKER_META_VERSION": "1.1.1", } } } @@ -1673,6 +1693,10 @@ describe('bake-file', () => { "org.opencontainers.image.created": "2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision": "90dd6032fac8bda1b6c4436a2e65de27961ed071", "org.opencontainers.image.licenses": "MIT" + }, + "args": { + "DOCKER_META_IMAGES": "org/app,ghcr.io/user/app", + "DOCKER_META_VERSION": "my", } } } @@ -1707,6 +1731,10 @@ describe('bake-file', () => { "org.opencontainers.image.created": "2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision": "90dd6032fac8bda1b6c4436a2e65de27961ed071", "org.opencontainers.image.licenses": "MIT" + }, + "args": { + "DOCKER_META_IMAGES": "org/app", + "DOCKER_META_VERSION": "v1.1.1", } } }