Skip to content

Update buildspec_eks.yml #16

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
8 changes: 4 additions & 4 deletions buildspec_eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ phases:
pre_build:
commands:
- echo Logging in to Amazon EKS...
- aws eks --region $AWS_DEFAULT_REGION update-kubeconfig --name $AWS_CLUSTER_NAME
- aws eks --region ap-south-1 update-kubeconfig --name cicd-demo
- echo check config
- kubectl config view --minify
- echo check kubectl access
- kubectl get svc
- echo Logging in to Amazon ECR...
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com
- REPOSITORY_URI=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME
- docker pull $REPOSITORY_URI:$IMAGE_TAG
- aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 653470767467.dkr.ecr.ap-south-1.amazonaws.com
- REPOSITORY_URI=653470767467.dkr.ecr.ap-south-1.amazonaws.com/newimage:latest
- docker pull 653470767467.dkr.ecr.ap-south-1.amazonaws.com/newimage


build:
Expand Down