Skip to content

chore(#128) Revert problematic changes from #290 #8

chore(#128) Revert problematic changes from #290

chore(#128) Revert problematic changes from #290 #8

Workflow file for this run

name: Docker build
on:
push:
branches:
- main
tags:
- "*"
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
env:
release: "2024.9.1"
defaultpython: "3.10"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
#- name: Install Container Canary
# run: |
# LATEST_RELEASE=$(curl --retry 6 --retry-delay 10 -s https://api.github.com/repos/NVIDIA/container-canary/releases/latest | jq -r ".assets[] | select(.name | test(\"canary_linux_amd64$\")) | .browser_download_url")
# curl --retry 6 --retry-delay 10 -sSL $LATEST_RELEASE > /usr/local/bin/canary
# chmod +x /usr/local/bin/canary
# canary version
#- name: Login to DockerHub
# uses: docker/login-action@v1
# if: github.repository == 'dask/dask-docker' && github.event_name == 'push'
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
# if: github.repository == 'dask/dask-docker' && github.event_name == 'push'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/bake-action@v4
with:
push: true
targets: dask
files: bakefile.hcl
env:
STABLE: ${{ startsWith(github.ref, 'refs/tags') }}
RELEASE: ${{ env.release }}
DEFAULT_PY_VERSION: ${{ env.defaultpython }}
- name: Validate Jupyter Lab image for Binder
if: contains(matrix.image.tag, 'dask-notebook')
run: canary validate --file https://github.com/NVIDIA/container-canary/raw/main/examples/binder.yaml ${{ steps.tags.outputs.tag }}
- name: Validate Jupyter Lab image for Kubeflow
if: contains(matrix.image.tag, 'dask-notebook')
run: canary validate --file https://github.com/NVIDIA/container-canary/raw/main/examples/kubeflow.yaml ${{ steps.tags.outputs.tag }}
#- name: Report
# run: echo Built ${{ steps.tags.outputs.tags }}