Spaces:
Sleeping
Sleeping
Download .github/workflows/docker-build-push.yml from NeerajCodz/ObjectDetection: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/NeerajCodz/ObjectDetection/resolve/main/.github/workflows/docker-build-push.yml
- Command line
-
hf download hf://spaces/NeerajCodz/ObjectDetection/.github/workflows/docker-build-push.yml
-
curl -L -o docker-build-push.yml https://huggingface.co/spaces/NeerajCodz/ObjectDetection/resolve/main/.github/workflows/docker-build-push.yml
607 Bytes
| name: Build and Push Docker Image to Docker Hub | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PAT }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ secrets.DOCKER_USERNAME }}/objectdetection:latest |