Apply suggestion to quote docker image name from @Copilot #5
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 and Push Docker Images | |
| # CI builds pull all model checkpoints (~10 GB) from Docker Hub automatically via: | |
| # COPY --from=diffuseproject/sampleworks-checkpoints:latest /checkpoints/ /checkpoints/ | |
| # No checkpoint files are needed on the CI runner. The checkpoints base image is | |
| # pre-built and pushed from the GPU server. See Dockerfile comments for details. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'pyproject.toml' | |
| - 'pixi.lock' | |
| - 'src/**' | |
| - 'scripts/**' | |
| - 'Dockerfile' | |
| - 'docker-entrypoint.sh' | |
| - '.github/workflows/docker.yml' | |
| workflow_dispatch: | |
| env: | |
| DOCKERHUB_ORG: diffuseproject | |
| IMAGE_NAME: sampleworks | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| id: build-push | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| tags: | | |
| ${{ env.DOCKERHUB_ORG }}/${{ env.IMAGE_NAME }}:latest | |
| ${{ env.DOCKERHUB_ORG }}/${{ env.IMAGE_NAME }}:${{ github.sha }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| provenance: false | |
| - name: Image digest | |
| run: echo "Image pushed with digest ${{ steps.build-push.outputs.digest }}" |