whoops indenting #190
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: Binder Image | |
| on: | |
| workflow_dispatch: | |
| push: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: write-all | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Pre-pull base image (retry) | |
| run: | | |
| for i in 1 2 3 4 5; do | |
| docker pull python:3.12-slim && exit 0 | |
| echo "Docker Hub pull failed (attempt $i). Retrying in 15s..." | |
| sleep 15 | |
| done | |
| exit 1 | |
| - name: Publish to GitHub Container Registry | |
| uses: elgohr/Publish-Docker-Github-Action@v5 | |
| with: | |
| name: ${{ github.repository }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| registry: ghcr.io |