Build Docker images #2814
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: 'Build Docker images' | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
permissions: # least privileges, see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions | |
contents: read | |
jobs: | |
build: | |
name: docker build | |
if: ${{ vars.SCHEDULED_DOCKER }} | |
# on a ubuntu-20.04 VM | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
product: ['auth', 'recursor', 'dnsdist'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 5 | |
submodules: recursive | |
# this builds packages and runs our unit test (make check) | |
- run: docker build --rm -t powerdns-${{ matrix.product }} -f Dockerfile-${{ matrix.product }} . |