-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.47 KB
/
build-Docker-image-triggers.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
name: Docker build & test
on:
pull_request:
push:
branches: [main]
schedule:
- cron: '0 0 * * 1,2,3,4,5'
workflow_dispatch:
jobs:
build_docker_image:
name: "Call build and push action"
uses: ./.github/workflows/build-and-push-Docker-image.yml
secrets: inherit
permissions:
packages: write
contents: read
with:
image-name: ${{ github.event.repository.name }}
image-tag: |
${{
github.event_name == 'pull_request' && format('{0}{1}','pr', github.event.pull_request.number) ||
github.event_name == 'schedule' && 'nightly' ||
github.event_name == 'push' && github.ref_name ||
github.event_name == 'workflow_dispatch' && github.ref_name ||
github.sha
}}
build_private_docker_image:
name: "Build private docker image"
strategy:
# if one build or test fails, permit the others to run
fail-fast: false
# build images in parallel
matrix:
image-name:
- rmi_pacta_2023q4_pa2024ch
- rmi_pacta_2022q4_general
- rmi_pacta_2023q4_general
uses: ./.github/workflows/build-push-private.yml
secrets: inherit
with:
image-name: ${{ matrix.image-name }}
add-comment:
if: ${{ github.event_name == 'pull_request' }}
uses: RMI-PACTA/actions/.github/workflows/add-comment-history.yml@main
needs: [build_docker_image, build_private_docker_image]
with:
header: "Docker build status"