-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (52 loc) · 1.59 KB
/
frontend_management_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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: frontend_management_build
on:
workflow_dispatch:
repository_dispatch:
push:
branches:
- main
paths:
- src/building_blocks/**
- src/frontends/management/**
- .github/workflows/frontend_management.yaml
pull_request:
branches:
- main
paths:
- src/building_blocks/**
- src/frontends/management/**
- .github/workflows/frontend_management.yaml
env:
COMPONENT_NAME: management
COMPONENT_TYPE: frontend
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build
with:
component_name: ${{ env.COMPONENT_NAME }}
component_type: ${{ env.COMPONENT_TYPE }}
registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }}
- uses: ./.github/workflows/composite/unit_test
with:
component_name: ${{ env.COMPONENT_NAME }}
component_type: ${{ env.COMPONENT_TYPE }}
registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }}
push:
needs: [build]
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: ./.github/workflows/composite/push
with:
component_name: ${{ env.COMPONENT_NAME }}
component_type: ${{ env.COMPONENT_TYPE }}
registry_host: ${{ secrets.REGISTRY_HOST }}
registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }}
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}