-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (38 loc) · 949 Bytes
/
build.yaml
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
name: Build & Publish Images to Registry
on:
workflow_dispatch:
push:
branches:
- master
- main
- 'update/*'
- 'feature/*'
paths:
- src/**
env:
REGISTRY: ghcr.io
ORGANISATION_NAME: whiteducksoftware
jobs:
prepare:
name: prepare
runs-on: ubuntu-latest
outputs:
REGISTRY: ${{ env.REGISTRY }}
ORGANISATION_NAME: ${{ env.ORGANISATION_NAME }}
steps:
- name: vars
run: echo "Exposing ENV vars"
api:
name: build
needs: [prepare]
uses: ./.github/workflows/docker-build-api.yml
with:
REGISTRY: ${{ needs.prepare.outputs.REGISTRY }}
ORGANISATION_NAME: ${{ needs.prepare.outputs.ORGANISATION_NAME }}
webapp:
name: build
needs: [prepare]
uses: ./.github/workflows/docker-build-webapp.yml
with:
REGISTRY: ${{ needs.prepare.outputs.REGISTRY }}
ORGANISATION_NAME: ${{ needs.prepare.outputs.ORGANISATION_NAME }}