misc: Clean up #14
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: Publish devito-petsc docker image | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - petsc | |
| # will be dropped after merge into petsc branch | |
| - petscsection | |
| jobs: | |
| build-and-push: | |
| name: Build and push devito-petsc image | |
| runs-on: ubuntu-latest | |
| env: | |
| # Use buildkit | |
| DOCKER_BUILDKIT: "1" | |
| PETSC_REPO: https://gitlab.com/ZoeLeibowitz/petsc.git | |
| PETSC_BRANCH: zoe/feature-da-section-sf | |
| steps: | |
| - name: Checkout devito | |
| uses: actions/checkout@v5 | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to DockerHub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Build & push petsc image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: docker/Dockerfile.petsc | |
| push: true | |
| platforms: linux/amd64 | |
| tags: | | |
| devitocodes/devito-petsc:latest | |
| build-args: | | |
| base=devitocodes/devito:gcc-dev-amd64 | |
| PETSC_REPO=${{ env.PETSC_REPO }} | |
| PETSC_BRANCH=${{ env.PETSC_BRANCH }} | |
| - name: Remove dangling layers | |
| run: docker system prune -f |