generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (49 loc) · 1.81 KB
/
dev.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
---
name: Deploy Dev
on:
workflow_dispatch:
inputs:
tag:
description: "Image tag to deploy"
required: false
type: string
default: "latest"
params:
description: 'Extra parameters to pass to helm upgrade'
default: ''
required: false
type: string
workflow_call:
inputs:
tag:
description: "Image tag to deploy"
required: false
type: string
default: "latest"
params:
description: 'Extra parameters to pass to helm upgrade'
default: ''
required: false
type: string
jobs:
deploy-dev:
name: Deploys (DEV)
uses: ./.github/workflows/deploy.yml
secrets: inherit
with:
autoscaling: false
environment: dev
release: ${{inputs.tag}}
tag: ${{ inputs.tag }}
triggers: '' #omit=always;
params: |
--set-string global.license='c28f0c' \
--set-string global.zone='dev' \
--set-string global.vault.role='nonprod' \
--set-string global.vault.zone='dev' \
--set-json dops.containers[0].resources='{"limits": {"cpu": "1000m", "memory": "2000Mi"}, "requests": {"cpu": "25m", "memory": "50Mi"}}' \
--set-json frontend.containers[0].resources='{"limits": {"cpu": "75m", "memory": "150Mi"}, "requests": {"cpu": "25m", "memory": "50Mi"}}' \
--set-json scheduler.containers[0].resources='{"limits": {"cpu": "75m", "memory": "150Mi"}, "requests": {"cpu": "25m", "memory": "50Mi"}}' \
--set-json policy.containers[0].resources='{"limits": {"cpu": "75m", "memory": "150Mi"}, "requests": {"cpu": "25m", "memory": "50Mi"}}' \
--set-json vehicles.containers[0].resources='{"limits": {"cpu": "300m", "memory": "500Mi"}, "requests": {"cpu": "200m", "memory": "400Mi"}}' \
${{ inputs.params }} \