-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.47 KB
/
deployment_production.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
name: Deployment to production
concurrency: production
on:
workflow_dispatch:
inputs:
tags:
description: 'Do you really want to update the production instance'
required: false
type: boolean
image_sha:
description: 'Image SHA ID, Optional '
type: string
required: false
env:
KUBECONFIG: .kube/config
KUBECONFIG_FILE: ${{ secrets.KUBECONFIG_PROD }}
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
mkdir -p .kube
echo "${{ env.KUBECONFIG_FILE }}" > $KUBECONFIG
- uses: stefanprodan/kube-tools@v1
with:
helmv3: 3.12.0
command: |
helmv3 repo add mda-deployment https://nfdi4health.github.io/mda-deployment/
helmv3 repo update
helmv3 upgrade mda-prod \
--install \
--set-json='images.backend="ghcr.io/${{ github.repository }}/backend:${{ github.event.pull_request.head.sha || github.sha }}"' \
--set-json='images.frontend="ghcr.io/${{ github.repository }}/frontend:${{ github.event.pull_request.head.sha || github.sha }}"' \
--set-json='images.prediction="gitlab.zbmed.de:5050/km/thesis/pierre-ba/backend:a7d3254ee488a236dade40ecedc646861aff9dbe"' \
--set-json='ingress.dns="mda.nfdi4health.de"' \
--set-json='ingress.enableSSL="true"' \
--set-json='ingress.certIssuer="letsencrypt-prod"' \
mda-deployment/metadata-annotation