-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (51 loc) · 1.81 KB
/
deploy-stg.yaml
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
name: Deploy Stg
on:
push:
branches:
- main
env:
ENV: stg
ENV_NAME: stg
concurrency:
group: deploy-stg-smocker
cancel-in-progress: true
jobs:
build-push:
runs-on: ktbs-build-deploy-runner
steps:
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Run build & push
uses: kitabisa/composite-actions/frontend/build@v2
env:
CORS_ALLOWED_HEADERS: '*'
CORS_ALLOWED_METHOD: 'GET, POST, PATCH, PUT, DELETE, OPTIONS'
CORS_ALLOWED_ORIGIN: '*'
SMOCKER_SECRET_KEY: ${{ secrets.SMOCKER_SECRET_KEY }}
with:
project_id: ${{ secrets.GCP_PROJECT_ID_STG }}
credentials_json: ${{ secrets.GCP_SA_KEY_STG }}
artifact_registry_host: ${{ secrets.ARTIFACT_REGISTRY_HOST }}
artifact_registry_project_id: ${{ secrets.GCP_PROJECT_ID_INFRA }}
# setup_bun: true
using_nextjs: true
config: false
deploy:
runs-on: ktbs-build-deploy-runner
needs: build-push
steps:
- name: Run deploy & prune
uses: kitabisa/composite-actions/frontend/deploy@v2
with:
project_id: ${{ secrets.GCP_PROJECT_ID_STG }}
credentials_json: ${{ secrets.GCP_SA_KEY_STG }}
artifact_registry_host: ${{ secrets.ARTIFACT_REGISTRY_HOST }}
artifact_registry_project_id: ${{ secrets.GCP_PROJECT_ID_INFRA }}
gke_cluster_name: ${{ secrets.GKE_CLUSTER_STGDEV }}
gke_cluster_zone: ${{ secrets.GKE_ZONE_STGDEV }}
rancher_host: ${{ secrets.RANCHER_CATTLE_HOST }}
rancher_access_key: ${{ secrets.RANCHER_CATTLE_ACCESS_KEY }}
rancher_secret_key: ${{ secrets.RANCHER_CATTLE_SECRET_KEY }}
rancher_cluster_id: ${{ secrets.RANCHER_CATTLE_CLUSTER_ID_STGDEV }}