Skip to content

Commit

Permalink
chore: create staging deploy routine (#706)
Browse files Browse the repository at this point in the history
* chore: create staging deploy routine

* add workflow choice
  • Loading branch information
renancloudwalk authored Apr 27, 2024
1 parent 1994625 commit 5ff293f
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: GitHub Builder Production
name: GitHub Builder

on:
workflow_dispatch:
inputs:
environment:
type: choice
description: 'Choose the deployment environment'
options:
- production
- staging
default: staging

jobs:
deploy:
uses: cloudwalk/github-builder/.github/workflows/deploy.yaml@v2
secrets: inherit
with:
environment: production
environment: ${{ github.event.inputs.environment }}
config_path: config
72 changes: 72 additions & 0 deletions config/staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
kubernetes:
base:
sourceRepo:
name: stratus
org: cloudwalk
monoRepo:
url: [email protected]:cloudwalk/monorepo-gitops.git
appsFolder: apps-config
argoCDValues: helms/argocd/values.yaml
containerRegistry:
url: gcr.io/infinitepay-staging
deployConfig:
cluster: infinitepay-staging
environment: staging
steps:
- build
- push
- versioning
- deploy
service:
asmRevision: asm-managed-stable
apps:
# --------------------------------------------------------------------------
# EVM api Rocksdb storage
# --------------------------------------------------------------------------
- name: stratus-api
dockerfile: ./docker/Dockerfile.run_with_importer
secretsManager:
enabled: true
provider: gcpsm
imageRepoName: stratus-rocks
kind: statefulset
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
replicas: 2
resources:
requests:
cpu: 16000m
memory: 32Gi
envs:
- name: ENV
value: "staging"
service:
metrics:
path: "/"
port: "9000"
ports:
- containerPort: 3000
name: app-stratus
virtualservice:
gateway: internal
hosts:
- stratus-api.services.staging.cloudwalk.network
- containerPort: 9000
name: metrics
healthcheck:
initialDelaySeconds: 10
interval: 10
path: /health
port: 3000
timeoutSeconds: 5
volumeClaims:
- name: rocksdata
storageClass: premium-rwo
size: 1500Gi
volumeMounts:
- volumeName: rocksdata
mountPath: /app/data
storageClass: premium-rwo

0 comments on commit 5ff293f

Please sign in to comment.