add support for public ecr (#20)

This commit is contained in:
Rauny 2021-04-26 15:35:18 -03:00 committed by GitHub
parent 71f15eb3f4
commit 43db3f2ccc
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View File

@ -158,7 +158,7 @@ func setupECRAuth(accessKey, secretKey, registry string) error {
}
}
jsonBytes := []byte(fmt.Sprintf(`{"credStore": "ecr-login", "credHelpers": {"%s": "ecr-login"}}`, registry))
jsonBytes := []byte(fmt.Sprintf(`{"credStore": "ecr-login", "credHelpers": {"public.ecr.aws": "ecr-login", "%s": "ecr-login"}}`, registry))
err := ioutil.WriteFile(dockerConfigPath, jsonBytes, 0644)
if err != nil {
return errors.Wrap(err, "failed to create docker config file")

View File

@ -1,4 +1,4 @@
FROM gcr.io/kaniko-project/executor:v1.3.0
FROM gcr.io/kaniko-project/executor:v1.5.2
ADD release/linux/amd64/kaniko-docker /kaniko/
ENTRYPOINT ["/kaniko/kaniko-docker"]

View File

@ -1,4 +1,4 @@
FROM gcr.io/kaniko-project/executor:arm64-v1.3.0
FROM gcr.io/kaniko-project/executor:arm64-v1.5.2
ENV HOME /root
ENV USER root

View File

@ -1,4 +1,4 @@
FROM gcr.io/kaniko-project/executor:v1.3.0
FROM gcr.io/kaniko-project/executor:v1.5.2
ADD release/linux/amd64/kaniko-ecr /kaniko/
ENTRYPOINT ["/kaniko/kaniko-ecr"]

View File

@ -1,4 +1,4 @@
FROM gcr.io/kaniko-project/executor:arm64-v1.3.0
FROM gcr.io/kaniko-project/executor:arm64-v1.5.2
ENV HOME /root
ENV USER root

View File

@ -1,4 +1,4 @@
FROM gcr.io/kaniko-project/executor:v1.3.0
FROM gcr.io/kaniko-project/executor:v1.5.2
ADD release/linux/amd64/kaniko-gcr /kaniko/
ENTRYPOINT ["/kaniko/kaniko-gcr"]
ENTRYPOINT ["/kaniko/kaniko-gcr"]

View File

@ -1,7 +1,7 @@
FROM gcr.io/kaniko-project/executor:arm64-v1.3.0
FROM gcr.io/kaniko-project/executor:arm64-v1.5.2
ENV HOME /root
ENV USER root
ADD release/linux/arm64/kaniko-gcr /kaniko/
ENTRYPOINT ["/kaniko/kaniko-gcr"]
ENTRYPOINT ["/kaniko/kaniko-gcr"]