-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.25 KB
/
build-composition.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
name: 'Build composition repo'
on:
workflow_dispatch: # Allow triggering manually
inputs:
stage:
type: choice
description: "Stage of release to be built"
default: integration
required: true
options:
- integration
- production
workflow_call:
inputs:
stage:
type: string
description: "Stage of release to be prepared"
default: integration
required: true
jobs:
settings:
uses: hitobito/hitobito/.github/workflows/stage-settings.yml@master
with:
repository: ${{ github.repository }}
stage: ${{ inputs.stage }}
version:
uses: hitobito/hitobito/.github/workflows/remote-version.yml@master
needs:
- settings
with:
repository_url: ${{ needs.settings.outputs.repo_url }}
stage: ${{ inputs.stage }}
build:
uses: hitobito/hitobito/.github/workflows/build-image.yml@master
needs:
- settings
- version
with:
composition: ${{ needs.settings.outputs.repo_name }}
source_ref: ${{ needs.settings.outputs.composition_branch }}
project: ${{ needs.settings.outputs.project }}
version: ${{ needs.version.outputs.version }}
stage: ${{ inputs.stage }}
secrets: inherit