-
Notifications
You must be signed in to change notification settings - Fork 27
52 lines (49 loc) · 1.41 KB
/
build-responders-portal.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
name: responders-portal Build
on:
push:
branches:
- master
- 'release/**'
paths:
- "responders/src/API/**"
- "responders/src/UI/**"
- "shared/src/**"
- .github/workflows/build-responders-portal.yml
- .github/workflows/build-template.yml
pull_request:
paths:
- "responders/src/API/**"
- "responders/src/UI/**"
- "shared/src/**"
- .github/workflows/build-responders-portal.yml
- .github/workflows/build-template.yml
jobs:
build-api:
permissions:
contents: read
packages: write
id-token: write
uses: ./.github/workflows/build-template.yml
with:
IMAGE_CONTEXT: responders/src/API
BUILD_CONTEXT: "shared=./shared/src"
IMAGE_FILE: responders/src/API/Dockerfile
IMAGE_NAME: responders-portal-api
REGISTRY: ${{ vars.DOCKER_REGISTRY }}
secrets:
REGISTRY_USER: ${{ secrets.DOCKER_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
build-ui:
permissions:
contents: read
packages: write
id-token: write
uses: ./.github/workflows/build-template.yml
with:
IMAGE_CONTEXT: responders/src/UI
IMAGE_FILE: responders/src/UI/Dockerfile
IMAGE_NAME: responders-portal-ui
REGISTRY: ${{ vars.DOCKER_REGISTRY }}
secrets:
REGISTRY_USER: ${{ secrets.DOCKER_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}