Deploy Dev #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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-string global.pr_num='${{ inputs.tag }}' \ | |
--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 }} \ |