Skip to content

Daily container builds #521

Daily container builds

Daily container builds #521

Workflow file for this run

name: Daily container builds
on:
schedule:
- cron: '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_unstable
- fedora_main
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}"