Daily container builds #519
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: 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}" |