feat(tasks): wire e2e:gpu to bootstrap cluster with GPU support (#547) #82
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 CI Image | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'deploy/docker/Dockerfile.ci' | |
| - 'mise.toml' | |
| - 'tasks/**' | |
| - '.github/workflows/ci-image.yml' | |
| workflow_dispatch: | |
| env: | |
| REGISTRY: ghcr.io | |
| CI_IMAGE: ghcr.io/nvidia/openshell/ci | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| build-ci-image: | |
| name: Build | |
| runs-on: build-amd64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ${{ env.REGISTRY }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: ./.github/actions/setup-buildx | |
| - name: Build and push CI image | |
| env: | |
| MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| docker buildx build \ | |
| --platform linux/amd64,linux/arm64 \ | |
| --secret id=MISE_GITHUB_TOKEN,env=MISE_GITHUB_TOKEN \ | |
| --push \ | |
| -t ${{ env.CI_IMAGE }}:${{ github.sha }} \ | |
| -t ${{ env.CI_IMAGE }}:latest \ | |
| -f deploy/docker/Dockerfile.ci \ | |
| . |