-
Notifications
You must be signed in to change notification settings - Fork 33
108 lines (90 loc) · 4.64 KB
/
docker-linux.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#
# Copyright (c) 2019-2024 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
name: Build Linux Docker images
on:
workflow_dispatch:
push:
paths:
- tools/docker/**
jobs:
docker-linux:
strategy:
matrix:
include:
- { image: build-clang3_6, dockerfile: build-clang3_6, platforms: "linux/amd64", }
- { image: build-clang7, dockerfile: build-clang7, platforms: "linux/amd64", }
- { image: build-clang11, dockerfile: build-clang11, platforms: "linux/amd64", }
- { image: build-clang14, dockerfile: build-clang14, platforms: "linux/amd64, linux/arm64/v8" }
- { image: build-clang16, dockerfile: build-clang16, platforms: "linux/amd64" }
- { image: build-clang17, dockerfile: build-clang17, platforms: "linux/amd64" }
- { image: build-clang18, dockerfile: build-clang18, platforms: "linux/amd64" }
- { image: build-clang16-i386, dockerfile: build-clang16-i386, platforms: "linux/amd64" }
- { image: build-gcc5, dockerfile: build-gcc5, platforms: "linux/amd64", }
- { image: build-gcc6, dockerfile: build-gcc6, platforms: "linux/amd64", }
- { image: build-gcc10, dockerfile: build-gcc10, platforms: "linux/amd64", }
- { image: build-gcc11, dockerfile: build-gcc11, platforms: "linux/amd64, linux/arm64/v8" }
- { image: build-gcc13, dockerfile: build-gcc13, platforms: "linux/amd64" }
- { image: build-gcc14, dockerfile: build-gcc14, platforms: "linux/amd64" }
- { image: build-cmake3_8, dockerfile: build-cmake3_8, platforms: "linux/amd64", }
- { image: build-noopenssl, dockerfile: build-noopenssl, platforms: "linux/amd64", }
- { image: build-docs, dockerfile: build-docs, platforms: "linux/amd64", }
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: anarthal-containers
password: ${{ secrets.ANARTHAL_CONTAINERS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
file: tools/docker/${{ matrix.dockerfile }}.dockerfile
build-args: ${{ matrix.build-args }}
platforms: ${{ matrix.platforms }}
tags: ghcr.io/anarthal-containers/${{ matrix.image }}:${{ github.sha }}, ghcr.io/anarthal-containers/${{ matrix.image }}:latest
dbs:
strategy:
matrix:
include:
- { flavor: mysql, version: 5.7.41, platforms: "linux/amd64" } # Unavailable for ARM
- { flavor: mysql, version: 8.4.1, platforms: "linux/amd64, linux/arm64/v8", entrypoint-args: "--mysql-native-password=ON" }
- { flavor: mysql, version: 9.0.0, platforms: "linux/amd64, linux/arm64/v8" }
- { flavor: mariadb, version: 11.4.2, platforms: "linux/amd64, linux/arm64/v8" }
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: anarthal-containers
password: ${{ secrets.ANARTHAL_CONTAINERS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
file: tools/docker/${{ matrix.flavor }}.dockerfile
build-args: |
BASE_IMAGE_VERSION=${{ matrix.version }}
ENTRYPOINT_ARGS=${{ matrix.entrypoint-args }}
platforms: ${{ matrix.platforms }}
tags: ghcr.io/anarthal-containers/ci-db:${{ matrix.flavor }}-${{ matrix.version }}-${{ github.sha }}