-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #731 from rapidsai/branch-25.02
[RELEASE] docker v25.02
- Loading branch information
Showing
17 changed files
with
366 additions
and
179 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
name: Build and push image variant | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
ARCHES: | ||
required: true | ||
type: string | ||
CUDA_VER: | ||
required: true | ||
type: string | ||
LINUX_DISTRO: | ||
required: true | ||
type: string | ||
LINUX_DISTRO_VER: | ||
required: true | ||
type: string | ||
LINUX_VER: | ||
required: true | ||
type: string | ||
PYTHON_VER: | ||
required: true | ||
type: string | ||
RAPIDS_VER: | ||
required: true | ||
type: string | ||
BASE_TAG: | ||
required: true | ||
type: string | ||
NOTEBOOKS_TAG: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
ARCH: ${{ fromJSON(inputs.ARCHES) }} | ||
CUDA_VER: ["${{ inputs.CUDA_VER }}"] | ||
LINUX_VER: ["${{ inputs.LINUX_VER }}"] | ||
PYTHON_VER: ["${{ inputs.PYTHON_VER }}"] | ||
RAPIDS_VER: ["${{ inputs.RAPIDS_VER }}"] | ||
fail-fast: false | ||
runs-on: "linux-${{ matrix.ARCH }}-cpu4" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install gha-tools | ||
run: | | ||
mkdir -p /tmp/gha-tools | ||
curl -s -L 'https://github.com/rapidsai/gha-tools/releases/latest/download/tools.tar.gz' | tar -xz -C /tmp/gha-tools | ||
echo "/tmp/gha-tools" >> "${GITHUB_PATH}" | ||
- name: Clean up condarc for release builds | ||
run: | | ||
GIT_DESCRIBE_TAG="$(git describe --tags --abbrev=0)" | ||
GIT_DESCRIBE_TAG="${GIT_DESCRIBE_TAG:1}" # remove leading 'v' | ||
if [[ ! $GIT_DESCRIBE_TAG =~ [a-z] ]]; then | ||
rapids-logger "Most recent tag is for release, adding `rapidsai` channel and removing `rapidsai-nightly` and `dask/label/dev` channels." | ||
sed -i 's|rapidsai-nightly|rapidsai|;\|dask/label/dev|d' context/condarc | ||
else | ||
rapids-logger "Most recent tag is an alpha. Build will use nightly channels." | ||
fi | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.GPUCIBOT_DOCKERHUB_USER }} | ||
password: ${{ secrets.GPUCIBOT_DOCKERHUB_TOKEN }} | ||
- name: Set up Docker Context for Buildx | ||
id: buildx-context | ||
run: | | ||
docker context create builders | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
driver: docker | ||
endpoint: builders | ||
- name: Build base image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: context | ||
file: Dockerfile | ||
target: base | ||
push: true | ||
pull: true | ||
build-args: | | ||
CUDA_VER=${{ inputs.CUDA_VER }} | ||
LINUX_DISTRO=${{ inputs.LINUX_DISTRO }} | ||
LINUX_DISTRO_VER=${{ inputs.LINUX_DISTRO_VER }} | ||
LINUX_VER=${{ inputs.LINUX_VER }} | ||
PYTHON_VER=${{ inputs.PYTHON_VER }} | ||
RAPIDS_VER=${{ inputs.RAPIDS_VER }} | ||
tags: ${{ inputs.BASE_TAG }}-${{ matrix.ARCH }} | ||
- name: Build notebooks image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: context | ||
file: Dockerfile | ||
target: notebooks | ||
push: true | ||
pull: true | ||
build-args: | | ||
CUDA_VER=${{ inputs.CUDA_VER }} | ||
LINUX_DISTRO=${{ inputs.LINUX_DISTRO }} | ||
LINUX_DISTRO_VER=${{ inputs.LINUX_DISTRO_VER }} | ||
LINUX_VER=${{ inputs.LINUX_VER }} | ||
PYTHON_VER=${{ inputs.PYTHON_VER }} | ||
RAPIDS_VER=${{ inputs.RAPIDS_VER }} | ||
tags: ${{ inputs.NOTEBOOKS_TAG }}-${{ matrix.ARCH }} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Trigger Breaking Change Notifications | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- closed | ||
- reopened | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
trigger-notifier: | ||
if: contains(github.event.pull_request.labels.*.name, 'breaking') | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/breaking-change-alert.yaml@branch-25.02 | ||
with: | ||
sender_login: ${{ github.event.sender.login }} | ||
sender_avatar: ${{ github.event.sender.avatar_url }} | ||
repo: ${{ github.repository }} | ||
pr_number: ${{ github.event.pull_request.number }} | ||
pr_title: "${{ github.event.pull_request.title }}" | ||
pr_body: "${{ github.event.pull_request.body || '_Empty PR description_' }}" | ||
pr_base_ref: ${{ github.event.pull_request.base.ref }} | ||
pr_author: ${{ github.event.pull_request.user.login }} | ||
event_action: ${{ github.event.action }} | ||
pr_merged: ${{ github.event.pull_request.merged }} |
Oops, something went wrong.