-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.92 KB
/
be.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
51
52
53
54
55
56
57
58
59
60
name: be
on:
workflow_dispatch:
inputs:
submodule_commit:
description: 'Commit of the submodule to deploy'
required: false
commit:
description: 'Commit of the CI repo to deploy'
required: false
pull_request:
branches: [ main ]
push:
branches: [ main ]
release:
types: [ published ]
jobs:
set_env:
uses: paulscherrerinstitute/scicat-ci/.github/workflows/reusable.environment.yml@main
with:
commit: ${{ github.event.inputs.commit }}
submodule_commit: ${{ github.event.inputs.submodule_commit }}
check_changed:
needs: set_env
uses: paulscherrerinstitute/scicat-ci/.github/workflows/reusable.changes.yml@main
with:
files: |
.github/workflows/be.yml
helm/configs/backend/${{ needs.set_env.outputs.environment }}/**
helm/configs/backend/values.yaml
scilog/sci-log-db/**
commit: ${{ needs.set_env.outputs.commit }}
submodule_commit: ${{ github.event.inputs.submodule_commit }}
submodule: scilog
build_deploy_be:
if: (needs.check_changed.outputs.changed == 'true' && !needs.set_env.outputs.component) || needs.set_env.outputs.component == 'be'
needs:
- check_changed
- set_env
uses: paulscherrerinstitute/scicat-ci/.github/workflows/reusable.build-deploy.yml@main
with:
context: scilog/sci-log-db/.
image_name: ${{ github.repository }}/be
release_name: backend
namespace_prefix: scilog-
tag: ${{ needs.set_env.outputs.tag }}
environment: ${{ needs.set_env.outputs.environment }}
commit: ${{ needs.set_env.outputs.commit }}
submodule_commit: ${{ github.event.inputs.submodule_commit }}
submodule: scilog
secrets:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
JSON_SECRETS: ${{ toJSON(secrets) }}
BASTION_USER: ${{ secrets.BASTION_USER }}
BASTION_SSH_KEY: ${{ secrets.BASTION_SSH_KEY }}