-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (45 loc) · 1.48 KB
/
build-one.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
name: Build single component
run-name: Build ${{ inputs.COMPONENT }}
on:
workflow_dispatch:
inputs:
TAG:
required: true
type: string
description: Additional tag to apply to images being built
default: latest
COMPONENT:
required: true
type: choice
options:
- cirras-underwriting-api
- cirras-underwriting-war
- cirras-underwriting-ngclient-lib
jobs:
build-underwriting-api:
uses: ./.github/workflows/build-package.yml
if: ${{ inputs.COMPONENT == 'cirras-underwriting-api' }}
secrets: inherit
with:
ENVIRONMENT: DEV
MICROSERVICE_NAME: cirras-underwriting-api
JAVA_VERSION: 17
TAG: ${{ inputs.TAG }}
build-and-upload-npm-modules:
uses: ./.github/workflows/build-npm.yml
if: ${{ inputs.COMPONENT == 'cirras-underwriting-ngclient-lib' }}
secrets: inherit
with:
ENVIRONMENT: DEV
MICROSERVICE_NAME: cirras-underwriting-ngclient-lib
API_TARGET: cirras-underwriting-api
SWAGGER_TARGET_PATH: cirras-underwriting-ngclient-lib/cirras-underwriting-ngclient-lib/src/main/angular/src/swagger/swagger.json
NPM_ARTIFACT_PATH: \@cirras/cirras-underwriting-api/-/@cirras
build-underwriting-war:
uses: ./.github/workflows/build-package.yml
if: ${{ inputs.COMPONENT == 'cirras-underwriting-war' }}
secrets: inherit
with:
ENVIRONMENT: DEV
MICROSERVICE_NAME: cirras-underwriting-war
TAG: ${{ inputs.TAG }}