From 3d53c553b1579a51ef92690d10504622382c1ead Mon Sep 17 00:00:00 2001 From: pat-trunk-io Date: Tue, 28 May 2024 14:54:06 -0700 Subject: [PATCH] Add docker ecr login plugin as tools (#792) Docker doesn't install this by default anymore. Adding it for easy install for new hires. --- .../docker-credential-ecr-login.test.ts | 12 ++++++++++ tools/docker-credential-ecr-login/plugin.yaml | 24 +++++++++++++++++++ 2 files changed, 36 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..e2fa0a70d --- /dev/null +++ b/tools/docker-credential-ecr-login/plugin.yaml @@ -0,0 +1,24 @@ +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: [docker-credential-ecr-login]