-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.02 KB
/
example.yml
File metadata and controls
35 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on: push
name: Deploy
jobs:
deploy:
name: Deploy to Kubernetes
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.4.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Login to AWS ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Deploy to EKS Cluster
uses: kapost/kap-helm
env:
RELEASE_IMAGE: ${{ github.sha }}
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
APPLICATION: ${{ secrets.APPLICATION }}
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_DATA }}
KUBE_NAMESPACE: my-namespace
HELM_ACTION: upgrade