-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (77 loc) · 2.35 KB
/
deploy-eks.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: deploy to eks
on:
workflow_call:
inputs:
deployment_uuid:
description: 배포 UUID
default: ''
type: string
release_message:
description: 릴리즈 메시지
default: ''
type: string
image_tag:
description: 배포할 이미지
required: true
type: string
user_name:
description: 배포한 사용자
required: false
type: string
stage:
description: 스테이지
type: string
service_name:
description: 서비스 이름
required: true
type: string
service_name_istio:
description: 서비스 이름
required: false
type: string
branch:
description: 브랜치
type: string
git_ref:
description: 커밋
type: string
slack_notify_channel:
description: 슬랙 알림 채널
required: true
type: string
slack_thread_key:
description: 슬랙 메시지 갱신을 위한 키
type: string
change_image_yq_command:
type: string
secrets:
GITHUB_BOT_TOKEN:
required: true
RECORD_DEPLOYMENT_STEP_URL:
required: true
RECORD_DEPLOYMENT_STEP_TOKEN:
required: true
jobs:
deploy:
name: deploy ${{ inputs.branch }} to ${{ inputs.stage }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Deploy
uses: croquiscom/github-actions/deploy-eks@main
with:
deployment_uuid: ${{ inputs.deployment_uuid }}
release_message: ${{ inputs.release_message }}
image_tag: ${{ inputs.image_tag }}
user_name: ${{ inputs.user_name }}
stage: ${{ inputs.stage }}
service_name: ${{ inputs.service_name }}
service_name_istio: ${{ inputs.service_name_istio }}
branch: ${{ inputs.branch }}
git_ref: ${{ inputs.git_ref }}
slack_notify_channel: ${{ inputs.slack_notify_channel }}
slack_thread_key: ${{ inputs.slack_thread_key }}
change_image_yq_command: ${{ inputs.change_image_yq_command }}
GITHUB_BOT_TOKEN: ${{ secrets.GITHUB_BOT_TOKEN }}
RECORD_DEPLOYMENT_STEP_URL: ${{ secrets.RECORD_DEPLOYMENT_STEP_URL }}
RECORD_DEPLOYMENT_STEP_TOKEN: ${{ secrets.RECORD_DEPLOYMENT_STEP_TOKEN }}