Skip to content

Commit db4d9a8

Browse files
Configure AWS environment variables in workflow
Added environment variables for AWS region and EKS cluster name to the Docker workflow.
1 parent 89ff52a commit db4d9a8

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/docker-image.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55
branches: [ "master" ]
66
pull_request:
77
branches: [ "master" ]
8-
8+
env:
9+
AWS_REGION: us-east-1
10+
EKS_CLUSTER_NAME: EKSCluster
911
jobs:
1012

1113
build:
@@ -33,4 +35,13 @@ jobs:
3335
aws_default_region: us-east-1
3436
checkout: false
3537
aws_ecr_repo_name: 'hello-repo'
36-
38+
- name: Deploy
39+
uses: cancue/eks-action@v0.0.2
40+
env:
41+
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
42+
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
43+
aws_region: $AWS_REGION
44+
cluster_name: $EKS_CLUSTER_NAME
45+
with:
46+
args: |
47+
kubectl cluster-info

0 commit comments

Comments
 (0)