File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ARG BASE_IMAGE=nvidia/cuda:12.6.2-devel-ubuntu22.04
3
3
ARG GIT_USER_NAME="JAX Toolbox"
4
4
5
5
ARG CLANG_VERSION=18
6
- ARG JAX_TOOLBOX_SHA
6
+ ARG JAX_TOOLBOX_REF
7
7
8
8
###############################################################################
9
9
## Obtain GCP's NCCL TCPx plugin
@@ -31,7 +31,7 @@ ARG BASE_IMAGE
31
31
ARG GIT_USER_EMAIL
32
32
ARG GIT_USER_NAME
33
33
ARG CLANG_VERSION
34
- ARG JAX_TOOLBOX_SHA
34
+ ARG JAX_TOOLBOX_REF
35
35
ENV CUDA_BASE_IMAGE=${BASE_IMAGE}
36
36
37
37
###############################################################################
@@ -204,7 +204,7 @@ COPY check-shm.sh /opt/nvidia/entrypoint.d/
204
204
###############################################################################
205
205
206
206
ADD install-nsys-jax.sh /usr/local/bin
207
- RUN install-nsys-jax.sh ${JAX_TOOLBOX_SHA }
207
+ RUN install-nsys-jax.sh ${JAX_TOOLBOX_REF }
208
208
209
209
###############################################################################
210
210
## Copy manifest file to the container
Original file line number Diff line number Diff line change @@ -128,11 +128,13 @@ jobs:
128
128
platforms : linux/${{ inputs.ARCHITECTURE }}
129
129
tags : ${{ steps.meta.outputs.tags }}
130
130
labels : ${{ steps.meta.outputs.labels }}
131
+ # head_ref is the PR source branch for pull_request pipelines, which avoids
132
+ # baking in the SHA of a merge commit than cannot be checked out later
131
133
build-args : |
132
134
GIT_USER_NAME=${{ inputs.GIT_USER_NAME }}
133
135
GIT_USER_EMAIL=${{ inputs.GIT_USER_EMAIL }}
134
136
BUILD_DATE=${{ inputs.BUILD_DATE }}
135
- JAX_TOOLBOX_SHA =${{ github.sha }}
137
+ JAX_TOOLBOX_REF =${{ github.head_ref || github.sha }}
136
138
${{ inputs.BASE_IMAGE != 'latest' && format('BASE_IMAGE={0}', inputs.BASE_IMAGE) || '' }}
137
139
138
140
- name : Generate sitrep
You can’t perform that action at this time.
0 commit comments