From 8b17b63ca9efbda02fd9765aba276cf31344e92a Mon Sep 17 00:00:00 2001 From: Patrice Boisclair-Laberge Date: Tue, 28 May 2024 21:43:35 +0000 Subject: [PATCH 1/3] Add docker ecr login plugin as tools --- .../docker-credential-ecr-login.test.ts | 12 +++++++++ tools/docker-credential-ecr-login/plugin.yaml | 26 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 tools/docker-credential-ecr-login/docker-credential-ecr-login.test.ts create mode 100644 tools/docker-credential-ecr-login/plugin.yaml diff --git a/tools/docker-credential-ecr-login/docker-credential-ecr-login.test.ts b/tools/docker-credential-ecr-login/docker-credential-ecr-login.test.ts new file mode 100644 index 000000000..5239aecb7 --- /dev/null +++ b/tools/docker-credential-ecr-login/docker-credential-ecr-login.test.ts @@ -0,0 +1,12 @@ +import { makeToolTestConfig, toolTest } from "tests"; + +toolTest({ + toolName: "docker-credential-ecr-login", + toolVersion: "0.8.0", + testConfigs: [ + makeToolTestConfig({ + command: ["docker-credential-ecr-login", "-v"], + expectedOut: "Version: 0.8.0", + }), + ], +}); diff --git a/tools/docker-credential-ecr-login/plugin.yaml b/tools/docker-credential-ecr-login/plugin.yaml new file mode 100644 index 000000000..0d1c96ccc --- /dev/null +++ b/tools/docker-credential-ecr-login/plugin.yaml @@ -0,0 +1,26 @@ +version: 0.1 +downloads: + - name: docker-credential-ecr-login + executable: true + downloads: + - os: + linux: linux + macos: darwin + cpu: + x86_64: amd64 + arm_64: arm64 + url: https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/${version}/${os}-${cpu}/docker-credential-ecr-login + - os: + windows: windows + cpu: + x86_64: amd64 + arm_64: arm64 + url: https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/${version}/windows-${cpu}/docker-credential-ecr-login.exe +tools: + definitions: + - name: docker-credential-ecr-login + download: docker-credential-ecr-login + known_good_version: 0.8.0 + shims: + - name: docker-credential-ecr-login + target: docker-credential-ecr-login From 7bbc587cb175511e9f8b6d17b74e84e4f1dec9f2 Mon Sep 17 00:00:00 2001 From: pat-trunk-io Date: Tue, 28 May 2024 14:47:30 -0700 Subject: [PATCH 2/3] Update plugin.yaml --- tools/docker-credential-ecr-login/plugin.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/docker-credential-ecr-login/plugin.yaml b/tools/docker-credential-ecr-login/plugin.yaml index 0d1c96ccc..a6636047d 100644 --- a/tools/docker-credential-ecr-login/plugin.yaml +++ b/tools/docker-credential-ecr-login/plugin.yaml @@ -21,6 +21,4 @@ tools: - name: docker-credential-ecr-login download: docker-credential-ecr-login known_good_version: 0.8.0 - shims: - - name: docker-credential-ecr-login - target: docker-credential-ecr-login + shims: [docker-credential-ecr-login] From 44bba0631c9abb534c0ad9c178aaf4cb76f7d610 Mon Sep 17 00:00:00 2001 From: Patrice Boisclair-Laberge Date: Tue, 28 May 2024 21:51:04 +0000 Subject: [PATCH 3/3] Fix format --- tools/docker-credential-ecr-login/plugin.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docker-credential-ecr-login/plugin.yaml b/tools/docker-credential-ecr-login/plugin.yaml index a6636047d..e2fa0a70d 100644 --- a/tools/docker-credential-ecr-login/plugin.yaml +++ b/tools/docker-credential-ecr-login/plugin.yaml @@ -21,4 +21,4 @@ tools: - name: docker-credential-ecr-login download: docker-credential-ecr-login known_good_version: 0.8.0 - shims: [docker-credential-ecr-login] + shims: [docker-credential-ecr-login]