-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 986 Bytes
/
build.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
name: Build website components
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-website-portal:
runs-on: ubuntu-latest
env:
APP_IMAGE_NAME: milobella/portal
steps:
- uses: actions/checkout@master
- name: Build image
if: success()
run: |
cd portal
docker build -t ${APP_IMAGE_NAME}:dev .
build-website-apps:
runs-on: ubuntu-latest
strategy:
matrix:
component: ["menu", "login", "try-it", "abilities", "nlg"]
steps:
- uses: actions/checkout@master
- name: Build image
if: success()
env:
APPLICATION_NAME: ${{ matrix.component }}
APP_IMAGE_NAME: milobella/website-app-${{ matrix.component }}
run: |
cd angular
docker build -t ${APP_IMAGE_NAME}:dev --build-arg APPLICATION_NAME .