|
49 | 49 | id: get-cudaq-version-short |
50 | 50 | run: | |
51 | 51 | shortref=$(echo "${{ steps.get-cudaq-version.outputs.ref }}" | head -c8) |
52 | | - commit_date=$(curl -s "https://api.github.com/repos/NVIDIA/cuda-quantum/commits/${{ steps.get-cudaq-version.outputs.ref }}" | jq -r '.commit.committer.date' | cut -dT -f1) |
| 52 | + commit_date=$(curl -s "https://api.github.com/repos/${{ steps.get-cudaq-version.outputs.repo }}/commits/${{ steps.get-cudaq-version.outputs.ref }}" | jq -r '.commit.committer.date' | cut -dT -f1) |
53 | 53 | echo "shortref=$shortref" >> $GITHUB_OUTPUT |
54 | 54 | echo "commit_date=$commit_date" >> $GITHUB_OUTPUT |
55 | 55 |
|
|
86 | 86 | if [ -n "$other_tag" ]; then |
87 | 87 | TAGS+=" -t ghcr.io/nvidia/cudaqx-dev:${other_tag}-${{ matrix.platform }}-cu${{ matrix.cuda_version }}" |
88 | 88 | fi |
| 89 | + image_key="${{ matrix.platform }}-cu${{ matrix.cuda_version }}" |
| 90 | + base_image=$(jq -r --arg key "$image_key" '.[$key] // empty' .github/workflows/cudaq-dev-images.json) |
| 91 | + if [ -z "$base_image" ]; then |
| 92 | + echo "No CUDA-Q devcontainer image configured for $image_key" >&2 |
| 93 | + exit 1 |
| 94 | + fi |
89 | 95 | docker build $TAGS -f docker/build_env/cudaqx.dev.Dockerfile . \ |
90 | | - --build-arg base_image=ghcr.io/nvidia/cuda-quantum-devcontainer:${{ matrix.platform }}-cu${{ matrix.cuda_version }}-gcc12-main \ |
| 96 | + --build-arg base_image="$base_image" \ |
91 | 97 | --build-arg cuda_version=${{ matrix.cuda_version }} |
92 | 98 | docker push -a ghcr.io/nvidia/cudaqx-dev |
93 | 99 | shell: bash --noprofile --norc -euo pipefail {0} |
@@ -159,7 +165,7 @@ jobs: |
159 | 165 | context: cudaq |
160 | 166 | file: cudaq/docker/release/cudaq.wheel.Dockerfile |
161 | 167 | build-args: | |
162 | | - base_image=ghcr.io/nvidia/cuda-quantum-devdeps:manylinux-${{ matrix.platform }}-cu${{ matrix.cuda_version }}-gcc12-main |
| 168 | + base_image=ghcr.io/nvidia/cuda-quantum-devdeps:manylinux-${{ matrix.platform }}-cu${{ matrix.cuda_version }}-gcc12-cudaqx-0.15.0 |
163 | 169 | release_version=0.14.99 |
164 | 170 | python_version=${{ matrix.python }} |
165 | 171 | cuda_version=${{ matrix.cuda_version }} |
@@ -190,7 +196,7 @@ jobs: |
190 | 196 | if [ -n "$other_tag" ]; then |
191 | 197 | TAGS+=" -t ghcr.io/nvidia/cudaqx-dev:${other_tag}-py${{ matrix.python }}-${{ matrix.platform }}-cu${{ matrix.cuda_version }}" |
192 | 198 | fi |
193 | | - BUILDARGS="--build-arg base_image=ghcr.io/nvidia/cuda-quantum-devdeps:manylinux-${{ matrix.platform }}-cu${{ matrix.cuda_version }}-gcc12-main" |
| 199 | + BUILDARGS="--build-arg base_image=ghcr.io/nvidia/cuda-quantum-devdeps:manylinux-${{ matrix.platform }}-cu${{ matrix.cuda_version }}-gcc12-cudaqx-0.15.0" |
194 | 200 | BUILDARGS+=" --build-arg python_version=${{ matrix.python }}" |
195 | 201 | BUILDARGS+=" --build-arg cuda_version=${{ matrix.cuda_version }}" |
196 | 202 | BUILDARGS+=" --ulimit nofile=1048576:1048576" |
|
0 commit comments