Bump python from 3.12.10-slim to 3.12.12-slim in /deploy #1014
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: Docker build | |
| # TODO: Trigger a fresh build every Wednesday | |
| # Triggered after changes to docker build related code | |
| # Or can be triggered manually | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| paths: | |
| # TODO: Review scope of GitHub action grows | |
| - '.github/workflows/docker.yml' | |
| - 'deploy/Dockerfile' | |
| # - 'entrypoints/**' | |
| - 'requirements/**' | |
| # schedule: | |
| # - cron: 30 9 * * WED | |
| env: | |
| IMAGE_NAME: uobristol/temmpo-web | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Record Docker version | |
| run: docker -v | |
| - uses: whoan/docker-build-with-cache-action@v8 | |
| with: | |
| context: . | |
| dockerfile: 'deploy/Dockerfile' | |
| username: ${{ secrets.DOCKER_HUB_USER }} | |
| password: "${{ secrets.DOCKER_HUB_PASSWORD }}" | |
| image_name: ${{ env.IMAGE_NAME }} | |
| image_tag: ${{ github.sha }},latest | |
| # Build from scratch if a scheduled job | |
| pull_image_and_stages: ${{ github.event_name != 'schedule' }} | |
| push_image_and_stages: docker run ${{ env.IMAGE_NAME }}:${{ github.sha }} | |
| # https://github.com/marketplace/actions/build-docker-images-using-cache#from-a-compose-file |