Weekly container builds #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |