-
Notifications
You must be signed in to change notification settings - Fork 66
53 lines (48 loc) · 1.54 KB
/
docker-build-publish.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
53
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Create and publish docker images
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != 'master' }}
on:
push:
branches:
- "master"
tags:
- "*"
pull_request:
branches:
- master
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
build-and-push-images:
strategy:
fail-fast: false
matrix:
include:
- name: cloud-server
build_type: Release
build_args: ""
file: docker/apps/Dockerfile.cloud-server
- name: cloud-server-debug
build_type: Debug
build_args: ""
file: docker/apps/Dockerfile.cloud-server-debug
- name: cloud-server-discovery-resource-observable
build_type: Release
build_args: "-DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON"
file: docker/apps/Dockerfile.cloud-server
- name: cloud-server-discovery-resource-observable-debug
build_type: Debug
build_args: "-DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON"
file: docker/apps/Dockerfile.cloud-server-debug
uses: ./.github/workflows/docker-build-publish-with-cfg.yml
with:
name: ${{ matrix.name }}
build_type: ${{ matrix.build_type }}
build_args: ${{ matrix.build_args }}
file: ${{ matrix.file }}