Skip to content

Commit

Permalink
Add docker ecr login plugin as tools (#792)
Browse files Browse the repository at this point in the history
Docker doesn't install this by default anymore. Adding it for easy
install for new hires.
  • Loading branch information
pat-trunk-io authored May 28, 2024
1 parent 10283c9 commit 3d53c55
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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",
}),
],
});
24 changes: 24 additions & 0 deletions tools/docker-credential-ecr-login/plugin.yaml
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 3d53c55

Please sign in to comment.