-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (64 loc) · 1.72 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
name: Build Nightly CI images
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
build_base_image_and_push:
name: Push container image to quay.io
environment: CI
runs-on: ubuntu-22.04
strategy:
matrix:
os:
- fedora
# - centos
# - opensuse
# - ubuntu
# - debian
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Push base images to quay.io
uses: docker/build-push-action@v3
with:
context: .
file: ./Containerfile.${{ matrix.os }}
no-cache: true
push: true
tags: quay.io/389ds/ci-images:${{ matrix.os }}
build_flavored_image_and_push:
name: Push flavored container image to quay.io
needs: build_base_image_and_push
environment: CI
runs-on: ubuntu-22.04
strategy:
matrix:
flavor:
- test
- scan
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Push base images to quay.io
uses: docker/build-push-action@v3
with:
context: .
file: ./Containerfile.${{ matrix.flavor }}
no-cache: true
push: true
tags: quay.io/389ds/ci-images:${{ matrix.flavor }}