Skip to content

Commit f0fe300

Browse files
authored
Merge pull request #1 from korengalpalo/update-ci-cd
Update ci cd
2 parents e28bc2c + 5272bfa commit f0fe300

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
needs: [build-and-test]
2222
steps:
2323
- uses: actions/checkout@v2
24-
- name: Configure AWS Credentials
24+
- name: Set up AWS Credentials
2525
run: |
2626
echo "${{ secrets.AWS_ACCESS_KEY_ID }}" > aws_access_key_id
2727
echo "${{ secrets.AWS_SECRET_ACCESS_KEY }}" > aws_secret_access_key
2828
- name: Set AWS Region
2929
run: |
30-
echo "AWS_REGION=us-east-1" >> $GITHUB_ENV # Replace with your AWS region
30+
echo "AWS_REGION=eu-north-1" >> $GITHUB_ENV # Update region to eu-north-1
3131
- name: Deploy to EKS
3232
run: |
3333
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
@@ -37,8 +37,8 @@ jobs:
3737
aws --version
3838
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
3939
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
40-
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${{ secrets.IMAGE_REGISTRY }}
41-
aws eks update-kubeconfig --name my-cluster --region ${{ env.AWS_REGION }}
40+
aws ecr get-login-password --region eu-north-1 | docker login --username AWS --password-stdin ${{ secrets.IMAGE_REGISTRY }}
41+
aws eks update-kubeconfig --name eks-code2cloud-test --region ${{ env.AWS_REGION }} # Update cluster name
4242
LATEST_SHA=$(git rev-parse HEAD)
4343
docker build -t ${{ secrets.REPOSITORY }}:$LATEST_SHA .
4444
docker tag ${{ secrets.REPOSITORY }}:$LATEST_SHA ${{ secrets.IMAGE_REGISTRY }}:$LATEST_SHA

0 commit comments

Comments
 (0)