-
Notifications
You must be signed in to change notification settings - Fork 66
70 lines (68 loc) · 2.63 KB
/
build-and-push.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
name: Build and push images to Quay.io registry
on:
push:
branches:
- master
schedule:
- cron: '0 1 * * 3'
jobs:
build-and-push:
if: github.repository_owner == 'sclorg'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- dockerfile: "10.3/Dockerfile"
registry_namespace: "centos7"
quayio_username: "QUAY_IMAGE_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_BUILDER_TOKEN"
tag: "centos7"
image_name: "mariadb-103-centos7"
- dockerfile: "10.5/Dockerfile"
registry_namespace: "centos7"
quayio_username: "QUAY_IMAGE_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_BUILDER_TOKEN"
tag: "centos7"
image_name: "mariadb-105-centos7"
- dockerfile: "10.5/Dockerfile.c9s"
registry_namespace: "sclorg"
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN"
tag: "c9s"
image_name: "mariadb-105-c9s"
- dockerfile: "10.5/Dockerfile.c8s"
registry_namespace: "sclorg"
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN"
tag: "c8s"
image_name: "mariadb-105-c8s"
- dockerfile: "10.3/Dockerfile.c8s"
registry_namespace: "sclorg"
quayio_username: "QUAY_IMAGE_SCLORG_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_SCLORG_BUILDER_TOKEN"
tag: "c8s"
image_name: "mariadb-103-c8s"
- dockerfile: "10.5/Dockerfile.fedora"
registry_namespace: "fedora"
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN"
tag: "fedora"
image_name: "mariadb-105"
- dockerfile: "10.3/Dockerfile.fedora"
registry_namespace: "fedora"
quayio_username: "QUAY_IMAGE_FEDORA_BUILDER_USERNAME"
quayio_token: "QUAY_IMAGE_FEDORA_BUILDER_TOKEN"
tag: "fedora"
image_name: "mariadb-103"
steps:
- name: Build and push to quay.io registry
uses: sclorg/build-and-push-action@v4
with:
registry: "quay.io"
registry_namespace: ${{ matrix.registry_namespace }}
registry_username: ${{ secrets[matrix.quayio_username] }}
registry_token: ${{ secrets[matrix.quayio_token] }}
dockerfile: ${{ matrix.dockerfile }}
tag: ${{ matrix.tag }}
image_name: ${{ matrix.image_name }}