Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cancue committed Mar 18, 2020
1 parent b755857 commit 1f689e9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
DOCKER_TAG: latest
K8S_NAMESPACE: dev_namespace
K8S_DEPLOYMENT: dev_deployment
AWS_REGION: ap-northeast-2
EKS_CLUSTER_NAME: dev_cluster

jobs:
Expand All @@ -26,12 +27,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: cancue/eks-action@master
uses: aws-actions/configure-aws-credentials@v1
with:
- name: Deploy
uses: cancue/eks-action@0.0.2
env:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: $AWS_REGION
cluster_name: $EKS_CLUSTER_NAME
args: kubectl set image deployment $K8S_DEPLOYMENT -n $K8S_NAMESPACE $K8S_DEPLOYMENT=$DOCKER_IMAGE:$DOCKER_TAG
with:
args: |
kubectl set image deployment $K8S_DEPLOYMENT -n $K8S_NAMESPACE
$K8S_DEPLOYMENT=$DOCKER_IMAGE:$DOCKER_TAG &&
kubectl rollout status deployment/$K8S_DEPLOYMENT -n $K8S_NAMESPACE

0 comments on commit 1f689e9

Please sign in to comment.