-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (76 loc) · 2.58 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: "Build Docker image"
on:
pull_request:
push:
branches:
- main
schedule:
# Run the CI nightly
- cron: '0 0 * * *'
jobs:
build_ubuntu_docker_image:
strategy:
fail-fast: false
matrix:
base_image_name: [ubuntu]
base_image_tag: [bionic, focal, jammy]
name: "${{ matrix.base_image_name }}-${{ matrix.base_image_tag }}"
# always use latest linux worker, as it should not have any impact
# when it comes to building docker images.
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: publish image
uses: matootie/[email protected]
with:
accessToken: ${{ secrets.ACCESS_TOKEN }}
containerRegistry: true
buildArgs: |
BASE_IMAGE_NAME=${{ matrix.base_image_name }}
BASE_IMAGE_TAG=${{ matrix.base_image_tag }}
VCS_REF=${{ github.sha }}
GZ_DISTRO=none
imageName: "gz-${{ matrix.base_image_name }}"
tag: "${{ matrix.base_image_tag }}"
build_ubuntu_docker_image_gz:
strategy:
fail-fast: false
matrix:
base_image_name: [ubuntu]
build_name: [citadel-bionic, fortress-bionic, fortress-focal, garden-focal, garden-jammy]
include:
- build_name: citadel-bionic
gz_distro: citadel
base_image_tag: bionic
- build_name: fortress-bionic
gz_distro: fortress
base_image_tag: bionic
- build_name: fortress-focal
gz_distro: fortress
base_image_tag: focal
- build_name: garden-focal
gz_distro: garden
base_image_tag: focal
- build_name: garden-jammy
gz_distro: garden
base_image_tag: jammy
name: "${{ matrix.base_image_name }}-${{ matrix.gz_distro }}-${{ matrix.base_image_tag }}"
# always use latest linux worker, as it should not have any impact
# when it comes to building docker images.
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: publish image
uses: matootie/[email protected]
with:
accessToken: ${{ secrets.ACCESS_TOKEN }}
containerRegistry: true
buildArgs: |
BASE_IMAGE_NAME=${{ matrix.base_image_name }}
BASE_IMAGE_TAG=${{ matrix.base_image_tag }}
VCS_REF=${{ github.sha }}
GZ_DISTRO=${{ matrix.gz_distro }}
imageName: "gz-${{ matrix.base_image_name }}"
tag: "${{ matrix.gz_distro }}-${{ matrix.base_image_tag }}"