From ed01528979d9575d209b7a0250d21815998dee31 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Mon, 10 May 2021 15:54:35 +0200 Subject: [PATCH] Rename bake target Signed-off-by: CrazyMax --- .github/metadata-action.png | Bin 6616 -> 7649 bytes README.md | 10 +++++----- __tests__/context.test.ts | 2 +- __tests__/meta.test.ts | 12 ++++++------ action.yml | 2 +- dist/index.js | 6 +++--- src/context.ts | 4 ++-- src/meta.ts | 2 +- test/docker-bake.hcl | 4 ++-- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/metadata-action.png b/.github/metadata-action.png index 8c33855386741d64d2368610e599686c1860d0ab..5d36826a9bc6ffd6c4bc1a816583643ff5dbbfdf 100644 GIT binary patch literal 7649 zcmZ8mcUaR)vqriQ3{40iE%Y9W)X=+h1*JpiO+}DEM0yFm_a;r`AW{_skrrC$5$U~4 z6A4n3c7x}h`vF4%@Za|sl!2elf(3`OF^uQ(oI=URsiKq z057W%5^lr`ODl*CG=--Xz|xShX`VWP1+i&Jc%Ug7GYwBe>I5R;IHeJ;;|Vu1)p04f zi-UDR>d2bXF=MG7o{{kx03fY@Xbjv)Nrnkb$H*G%;z`HkR9@W( z<`zUZL^wY7F=GO!Vy1l?rp>Bb{OdOjb#UgEu-Q zFVzMd9+wVxQPMH;tZImW1)A~*K&mj){OX=E3hJx?-YQIM>a`U6+C;>kGNi=kqJ%a}9f*JoEQtRJFCop{LR^=vgOD8I?!4MB|NCH|`VqnLS6Q{=kv~ zd2Bfhf-`&jP<(y}{BzdzWfemf*&?VVX}>BDkKj|2vcX&veu3xJl!ajh{Q^hI zd`h1#2L!%;F!=mB=ScTbthtG939Xo;QQx#^ki++$7K6SC*chmyHc z=F`B7Pg8HlZM?_#@4P~C@I9?uHC@oTH&iXw>5b*>Kb&bOQRlk9sF!nuOmFQq607>;cF7Agzs@S@hN3`QoUOw3*n_sYB z_XcKnjVIHjK(2@a>+nqe_u3+z?roi>55EjH_hO$|kJM)&%09PD9b(TDvk|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D+zt-xV8z6o$#k{ZbuO(TU)PZ?rYU2W(z&QfR`gX1-d zXQ3-LXn2b@j~#!d8ohZ#tzwJ*Xb$ zBn|n->u#&>#Q3~&4R^=}jTE`)mEHvrnu}ezBLW?8{3(@BjJC=A8q5FdzePF^xh~;T W!~LvWNSFWoLe^B(QNiA~3jQC1oZ({t diff --git a/README.md b/README.md index 1f19037..8ec5839 100644 --- a/README.md +++ b/README.md @@ -152,14 +152,14 @@ jobs: This action also handles a bake definition file that can be used with the [Docker Bake action](https://github.com/docker/bake-action). You just have to declare an empty target named -`ghaction-docker-meta` and inherit from it. +`docker-metadata-action` and inherit from it. ```hcl // docker-bake.hcl -target "ghaction-docker-meta" {} +target "docker-metadata-action" {} target "build" { - inherits = ["ghaction-docker-meta"] + inherits = ["docker-metadata-action"] context = "./" dockerfile = "Dockerfile" platforms = ["linux/amd64", "linux/arm/v6", "linux/arm/v7", "linux/arm64", "linux/386", "linux/ppc64le"] @@ -210,7 +210,7 @@ Content of `${{ steps.meta.outputs.bake-file }}` file will look like this with ` ```json { "target": { - "ghaction-docker-meta": { + "docker-metadata-action": { "tags": [ "name/app:1.2.3", "name/app:1.2", @@ -263,7 +263,7 @@ Following inputs can be used as `step.with` keys | `labels` | List | List of custom labels | | `sep-tags` | String | Separator to use for tags output (default `\n`) | | `sep-labels` | String | Separator to use for labels output (default `\n`) | -| `bake-target` | String | Bake target name (default `ghaction-docker-meta`) | +| `bake-target` | String | Bake target name (default `docker-metadata-action`) | ### outputs diff --git a/__tests__/context.test.ts b/__tests__/context.test.ts index a0aee97..2320f7d 100644 --- a/__tests__/context.test.ts +++ b/__tests__/context.test.ts @@ -5,7 +5,7 @@ import * as path from 'path'; import * as context from '../src/context'; jest.spyOn(context, 'tmpDir').mockImplementation((): string => { - const tmpDir = path.join('/tmp/.ghaction-docker-meta-jest').split(path.sep).join(path.posix.sep); + const tmpDir = path.join('/tmp/.docker-metadata-action-jest').split(path.sep).join(path.posix.sep); if (!fs.existsSync(tmpDir)) { fs.mkdirSync(tmpDir, {recursive: true}); } diff --git a/__tests__/meta.test.ts b/__tests__/meta.test.ts index 9fbb40e..c983807 100644 --- a/__tests__/meta.test.ts +++ b/__tests__/meta.test.ts @@ -2382,7 +2382,7 @@ describe('bake', () => { } as Inputs, { "target": { - "ghaction-docker-meta": { + "docker-metadata-action": { "tags": [ "user/app:dev", "user/app:my", @@ -2419,7 +2419,7 @@ describe('bake', () => { } as Inputs, { "target": { - "ghaction-docker-meta": { + "docker-metadata-action": { "tags": [ "user/app:dev", "user/app:my", @@ -2500,7 +2500,7 @@ describe('bake', () => { } as Inputs, { "target": { - "ghaction-docker-meta": { + "docker-metadata-action": { "tags": [ "user/app:20200110", "user/app:my", @@ -2541,7 +2541,7 @@ describe('bake', () => { } as Inputs, { "target": { - "ghaction-docker-meta": { + "docker-metadata-action": { "tags": [ "org/app:1.1.1", "org/app:1.1", @@ -2589,7 +2589,7 @@ describe('bake', () => { } as Inputs, { "target": { - "ghaction-docker-meta": { + "docker-metadata-action": { "tags": [ "org/app:my", "org/app:custom", @@ -2630,7 +2630,7 @@ describe('bake', () => { } as Inputs, { "target": { - "ghaction-docker-meta": { + "docker-metadata-action": { "tags": [ "org/app:v1.1.1", "org/app:latest" diff --git a/action.yml b/action.yml index 0b2c5ce..fc1caaf 100644 --- a/action.yml +++ b/action.yml @@ -26,7 +26,7 @@ inputs: description: 'Separator to use for labels output (default \n)' required: false bake-target: - description: 'Bake target name (default ghaction-docker-meta)' + description: 'Bake target name (default docker-metadata-action)' required: false github-token: description: 'GitHub Token as provided by secrets' diff --git a/dist/index.js b/dist/index.js index 3ef66ef..1166c4d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -49,7 +49,7 @@ const path = __importStar(__webpack_require__(5622)); let _tmpDir; function tmpDir() { if (!_tmpDir) { - _tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ghaction-docker-meta-')).split(path.sep).join(path.posix.sep); + _tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-')).split(path.sep).join(path.posix.sep); } return _tmpDir; } @@ -62,7 +62,7 @@ function getInputs() { labels: getInputList('labels', true), sepTags: core.getInput('sep-tags') || `\n`, sepLabels: core.getInput('sep-labels') || `\n`, - bakeTarget: core.getInput('bake-target') || `ghaction-docker-meta`, + bakeTarget: core.getInput('bake-target') || `docker-metadata-action`, githubToken: core.getInput('github-token') }; } @@ -649,7 +649,7 @@ class Meta { } jsonLabels[matches[1]] = matches[2]; } - const bakeFile = path.join(context_1.tmpDir(), 'ghaction-docker-meta-bake.json').split(path.sep).join(path.posix.sep); + const bakeFile = path.join(context_1.tmpDir(), 'docker-metadata-action-bake.json').split(path.sep).join(path.posix.sep); fs.writeFileSync(bakeFile, JSON.stringify({ target: { [this.inputs.bakeTarget]: { diff --git a/src/context.ts b/src/context.ts index 527b4ad..26235ad 100644 --- a/src/context.ts +++ b/src/context.ts @@ -20,7 +20,7 @@ export interface Inputs { export function tmpDir(): string { if (!_tmpDir) { - _tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'ghaction-docker-meta-')).split(path.sep).join(path.posix.sep); + _tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-')).split(path.sep).join(path.posix.sep); } return _tmpDir; } @@ -33,7 +33,7 @@ export function getInputs(): Inputs { labels: getInputList('labels', true), sepTags: core.getInput('sep-tags') || `\n`, sepLabels: core.getInput('sep-labels') || `\n`, - bakeTarget: core.getInput('bake-target') || `ghaction-docker-meta`, + bakeTarget: core.getInput('bake-target') || `docker-metadata-action`, githubToken: core.getInput('github-token') }; } diff --git a/src/meta.ts b/src/meta.ts index a0b1daa..43b47e0 100644 --- a/src/meta.ts +++ b/src/meta.ts @@ -322,7 +322,7 @@ export class Meta { jsonLabels[matches[1]] = matches[2]; } - const bakeFile = path.join(tmpDir(), 'ghaction-docker-meta-bake.json').split(path.sep).join(path.posix.sep); + const bakeFile = path.join(tmpDir(), 'docker-metadata-action-bake.json').split(path.sep).join(path.posix.sep); fs.writeFileSync( bakeFile, JSON.stringify( diff --git a/test/docker-bake.hcl b/test/docker-bake.hcl index eef851f..a458d32 100644 --- a/test/docker-bake.hcl +++ b/test/docker-bake.hcl @@ -1,4 +1,4 @@ -target "ghaction-docker-meta" {} +target "docker-metadata-action" {} group "default" { targets = ["db", "app"] @@ -14,7 +14,7 @@ target "db" { } target "app" { - inherits = ["ghaction-docker-meta"] + inherits = ["docker-metadata-action"] context = "./test" dockerfile = "Dockerfile" args = {