Skip to content

Weekly container builds #100

Weekly container builds

Weekly container builds #100

Workflow file for this run

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:
- debian12
- debian11
- debian10
- ubuntu23.10
- ubuntu22.04
- ubuntu20.04
- fedora39
- fedora38
- centos9
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}"