CI: add a dogfooding check #118
Workflow file for this run
This file contains hidden or 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 buildbox images | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - main | |
| - release-* | |
| pull_request: | |
| branches: | |
| - main | |
| - release-* | |
| # cancel the in-progress workflow when PR is refreshed. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| ImageBuild: | |
| strategy: | |
| matrix: | |
| os: [fedora, suse, debian, ubuntu, rocky] | |
| lang: [c,latex] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build the container image | |
| run: | | |
| make CONTAINER_CMD=docker IMAGE_OS=${{ matrix.os}} IMAGE_LANG=${{ matrix.lang}} image-build | |
| # build and push images to quay.io - only on push, not on PRs. | |
| ImagePush: | |
| strategy: | |
| matrix: | |
| os: [fedora, suse, debian, ubuntu] | |
| lang: [c,latex] | |
| #needs: [CheckMake, ShellCheck ] | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build the container image | |
| run: | | |
| make CONTAINER_CMD=docker IMAGE_OS=${{ matrix.os}} IMAGE_LANG=${{ matrix.lang}} image-build | |
| - name: log in to quay.io | |
| run: echo "${{ secrets.QUAY_PASS }}" | docker login -u "${{ secrets.QUAY_USER }}" --password-stdin quay.io | |
| - name: Push the container image to quay.io | |
| run: | | |
| make CONTAINER_CMD=docker IMAGE_OS=${{ matrix.os}} IMAGE_LANG=${{ matrix.lang}} image-push |