Download .github/workflows/docker-image.yml from ai69ai82/cli: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/spaces/ai69ai82/cli/resolve/main/.github/workflows/docker-image.yml
- Command line
-
hf download hf://spaces/ai69ai82/cli/.github/workflows/docker-image.yml
-
curl -L -o docker-image.yml https://huggingface.co/spaces/ai69ai82/cli/resolve/main/.github/workflows/docker-image.yml
712 Bytes
| name: GHCR CI | |
| permissions: write-all | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: lowercase repository name | |
| run: echo "IMAGE_NAME=${GITHUB_REPOSITORY@L}" >> ${GITHUB_ENV} | |
| - uses: actions/checkout@v4 | |
| - name: Log in to GitHub Container Registry | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
| - name: Build the Docker image | |
| run: docker build . --file Dockerfile --tag ghcr.io/${{ env.IMAGE_NAME }}:latest | |
| - name: Push the Docker image | |
| run: docker push ghcr.io/${{ env.IMAGE_NAME }}:latest |