From 85555f038a87fb31f1896b9283f28bc752e34f75 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 26 Jan 2024 19:42:40 +0100 Subject: [PATCH] add cuda to build --- .github/workflows/docker-image.yml | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 8f15fe051a..692d471325 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -110,6 +110,54 @@ jobs: ${{ steps.meta-ee-public.outputs.labels }} org.opencontainers.image.licenses=Windmill-Enterprise-License + build_ee_cuda: + runs-on: ubicloud + if: ${{ startsWith(github.ref, 'refs/tags/') }} + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v2 + + - uses: depot/setup-action@v1 + + - name: Docker meta + id: meta-ee-public + uses: docker/metadata-action@v4 + with: + images: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee + flavor: | + latest=false + tags: | + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push publicly ee + uses: depot/build-push-action@v1 + with: + context: . + platforms: linux/amd64 + push: true + build-args: | + features=enterprise + PYTHON_IMAGE=nvidia/cuda:12.2.2-base-ubuntu22.04 + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee-cuda:main + ${{ steps.meta-ee-public.outputs.tags }} + labels: | + ${{ steps.meta-ee-public.outputs.labels }} + org.opencontainers.image.licenses=Windmill-Enterprise-License + build_ee_reports_privately: needs: [build_ee] runs-on: ubicloud