summaryrefslogtreecommitdiff
path: root/app-containers/amazon-ecr-credential-helper/amazon-ecr-credential-helper-0.10.1.ebuild
blob: e3b165f88fffc2164b94f1a6f337ca32fe1557b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Automatically gets credentials for Amazon ECR on docker push/docker pull"
HOMEPAGE="https://github.com/awslabs/amazon-ecr-credential-helper"
SRC_URI="https://${PN}-releases.s3.us-east-2.amazonaws.com/${PV}/release.tar.gz -> ${P}.tar.gz"
S=${WORKDIR}/ecr-login

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

src_compile() {
	ego build ./cli/docker-credential-ecr-login
}

src_test() {
	ego test ./...
}

src_install() {
	dobin docker-credential-ecr-login
	doman ../docs/docker-credential-ecr-login.1
	dodoc ../README.md
}