Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sets base image builds to push to private ecr #448

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/docker-ecr-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"862665599504.dkr.ecr.us-west-2.amazonaws.com": "ecr-login",
"520703868821.dkr.ecr.us-east-1.amazonaws.com": "ecr-login",
"382577505035.dkr.ecr.us-west-2.amazonaws.com": "ecr-login",
"832188789588.dkr.ecr.us-east-1.amazonaws.com": "ecr-login",
"public.ecr.aws": "ecr-login"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ periodics:
- name: AL_TAG
value: "2022"
- name: IMAGE_REPO
value: "public.ecr.aws/eks-distro-build-tooling"
value: "832188789588.dkr.ecr.us-east-1.amazonaws.com"
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: "arn:aws:iam::832188789588:role/ECRPublicPushRole"
- name: AWS_REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ periodics:
- name: AL_TAG
value: "2"
- name: IMAGE_REPO
value: "public.ecr.aws/eks-distro-build-tooling"
value: "832188789588.dkr.ecr.us-east-1.amazonaws.com"
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: "arn:aws:iam::832188789588:role/ECRPublicPushRole"
- name: AWS_REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ postsubmits:
- name: AL_TAG
value: "2022"
- name: IMAGE_REPO
value: "public.ecr.aws/eks-distro-build-tooling"
value: "832188789588.dkr.ecr.us-east-1.amazonaws.com"
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: "arn:aws:iam::832188789588:role/ECRPublicPushRole"
- name: AWS_REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ postsubmits:
- name: AL_TAG
value: "2"
- name: IMAGE_REPO
value: "public.ecr.aws/eks-distro-build-tooling"
value: "832188789588.dkr.ecr.us-east-1.amazonaws.com"
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: "arn:aws:iam::832188789588:role/ECRPublicPushRole"
- name: AWS_REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,17 @@ postsubmits:
- bash
- -c
- >
make update-base-image-other-repos -C $PROJECT_PATH
source scripts/setup_public_ecr_push.sh
&&
make -j 4 update-base-image-other-repos -C $PROJECT_PATH
env:
- name: PROJECT_PATH
value: "eks-distro-base"
- name: AWS_REGION
value: "us-east-1"
- name: IMAGE_REPO
value: "832188789588.dkr.ecr.us-east-1.amazonaws.com"
- name: PUBLIC_IMAGE_REPO
value: "public.ecr.aws/eks-distro-build-tooling"
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: "arn:aws:iam::832188789588:role/ECRPublicPushRole"
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ envVars:
- name: AL_TAG
value: 2022
- name: IMAGE_REPO
value: public.ecr.aws/eks-distro-build-tooling
value: 832188789588.dkr.ecr.us-east-1.amazonaws.com
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: arn:aws:iam::832188789588:role/ECRPublicPushRole
- name: AWS_REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ envVars:
- name: AL_TAG
value: 2
- name: IMAGE_REPO
value: public.ecr.aws/eks-distro-build-tooling
value: 832188789588.dkr.ecr.us-east-1.amazonaws.com
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: arn:aws:iam::832188789588:role/ECRPublicPushRole
- name: AWS_REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ envVars:
- name: AL_TAG
value: 2022
- name: IMAGE_REPO
value: public.ecr.aws/eks-distro-build-tooling
value: 832188789588.dkr.ecr.us-east-1.amazonaws.com
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: arn:aws:iam::832188789588:role/ECRPublicPushRole
- name: AWS_REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ envVars:
- name: AL_TAG
value: 2
- name: IMAGE_REPO
value: public.ecr.aws/eks-distro-build-tooling
value: 832188789588.dkr.ecr.us-east-1.amazonaws.com
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: arn:aws:iam::832188789588:role/ECRPublicPushRole
- name: AWS_REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ jobName: eks-distro-base-tag-files-update-postsubmit
runIfChanged: ^EKS_DISTRO_TAG_FILE.yaml$
prCreation: true
commands:
- make update-base-image-other-repos -C $PROJECT_PATH
- source scripts/setup_public_ecr_push.sh
- make -j 4 update-base-image-other-repos -C $PROJECT_PATH
projectPath: eks-distro-base
envVars:
- name: AWS_REGION
value: us-east-1
- name: IMAGE_REPO
value: 832188789588.dkr.ecr.us-east-1.amazonaws.com
- name: PUBLIC_IMAGE_REPO
value: public.ecr.aws/eks-distro-build-tooling
- name: ECR_PUBLIC_PUSH_ROLE_ARN
value: arn:aws:iam::832188789588:role/ECRPublicPushRole
extraRefs:
- baseRef: main
org: eks-distro-pr-bot
Expand Down