prepare for docker builds in CI #13
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: EasyCrypt Docker Containers Build and Publish | ||
| on: | ||
| push: | ||
| branches: | ||
| - 'main' | ||
| - 'latest' | ||
| tags: | ||
| - 'r[0-9]+.[0-9]+' | ||
| workflow_dispatch | ||
| jobs: | ||
| make-image: | ||
| name: Make and Publish Container Images | ||
| runs-on: ubuntu-24.04 | ||
| strategy: | ||
| fail-fast: true | ||
| matrix: | ||
| target: [base, build, test] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install docker and docker-buildx | ||
| run: apt install docker docker-buildx | ||
| - name: Build ${{ matrix.target }} Image | ||
| run: TAG=${{ github.ref_name }} VARIANT=${{ matrix.target }} make -C scripts/docker publish | ||