Skip to content

docs: update README.md #12

docs: update README.md

docs: update README.md #12

Workflow file for this run

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 }}