-
Notifications
You must be signed in to change notification settings - Fork 82
46 lines (36 loc) · 1.18 KB
/
deploy-docker.yml
File metadata and controls
46 lines (36 loc) · 1.18 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
36
37
38
39
40
41
42
43
44
45
46
name: Deploy Docker
on:
workflow_dispatch:
inputs:
tag:
description: tag/version to deploy
required: true
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
aws-region: us-east-1
role-to-assume: arn:aws:iam::886148526908:role/CloudformationBuild
- name: Update kubeconfig
run: |
aws eks update-kubeconfig \
--name eks-prod-swagger-oss-cluster-tf \
--region us-east-1 \
--role-arn arn:aws:iam::886148526908:role/CloudformationBuild
- name: Deploy to Kubernetes
run: |
IMAGE="swaggerapi/swagger-validator-v2:v${{ github.event.inputs.tag }}"
echo "Deploying image: $IMAGE"
kubectl set image daemonset/swagger-validator-v2 \
swagger-validator-v2=$IMAGE \
-n swagger-oss
kubectl rollout status daemonset/swagger-validator-v2 -n swagger-oss