-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (49 loc) · 1.22 KB
/
weekly-jobs.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
name: Weekly container builds
on:
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
strategy:
# Don't stop other in-progress jobs when one fails
fail-fast: false
matrix:
branch:
# Debian
# Debian 12
- bookworm_amd64
# Debian 11
- bullseye_amd64
# Debian 10
- buster_amd64
# Ubuntu
# Ubuntu 20.04
- focal_amd64
# Ubuntu 18.04
- bionic_amd64
# Ubuntu 16.04
- xenial_amd64
# Ubuntu 14.04
- trusty_amd64
# Fedora
- fedora36_x86_64
# CentOS
- el9_x86_64
env:
SLUG: "collectd/ci:${{ matrix.branch }}"
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- name: Build container
run:
docker build --pull -t "${SLUG}" .
- run: docker inspect "${SLUG}"
- run: docker history "${SLUG}"
- name: Log into the container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- run: docker push "${SLUG}"