Build & push ci-jobs #6
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 & push ci-jobs | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: "Docker Hub tag to push (ddmal/ci-jobs:<tag>)" | |
| required: true | |
| default: "django-v4.2.16" | |
| branch: | |
| description: "BRANCH build-arg — ref used to clone neon_wrapper/pixel_wrapper" | |
| required: true | |
| default: "develop" | |
| jobs: | |
| build-ci-jobs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Free disk space | |
| # ci-jobs is a heavy image (Grok compile + gamera/musicstaves + postgres + deps). | |
| uses: jlumbroso/free-disk-space@v1.3.1 | |
| with: | |
| tool-cache: true | |
| large-packages: false | |
| docker-images: false | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: docker.io | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
| - name: Build ci-jobs | |
| run: | | |
| docker build \ | |
| --build-arg BRANCH="${{ github.event.inputs.branch }}" \ | |
| -t "ddmal/ci-jobs:${{ github.event.inputs.tag }}" \ | |
| -f ci-jobs/Dockerfile \ | |
| . | |
| - name: Push ci-jobs | |
| run: docker push "ddmal/ci-jobs:${{ github.event.inputs.tag }}" |