-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.42 KB
/
update-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: 'Update Production'
on:
workflow_dispatch:
inputs:
release:
type: choice
description: "Type of Release: regular, patch or custom"
required: true
default: "regular"
options:
- regular
- patch
- custom
version:
type: string
description: "next version number, if Release is custom"
required: false
branch:
type: string
description: "Branch to be released"
required: false
default: "master"
jobs:
release:
uses: hitobito/hitobito/.github/workflows/release.yml@master
with:
composition: ${{ github.repository }}
release_type: ${{ inputs.release }}
next_version: ${{ inputs.version }}
stage: production
target_branch: ${{ inputs.branch }}
secrets: inherit
version:
uses: hitobito/hitobito/.github/workflows/remote-version.yml@master
needs:
- release
with:
repository_url: https://github.com/${{ github.repository}}.git
stage: production
deploy-staging:
uses: hitobito/hitobito/.github/workflows/update_image.yml@master
needs:
- version
with:
repository: gitlab.puzzle.ch/pitc_hit/deployments/hitobito.git
file: ./deployments/hit-sww-staging/kustomization.yaml
image_tag: ${{ needs.version.outputs.version }}
image_ref: rails
identifier: hit-sww-staging
secrets: inherit