@@ -101,6 +101,17 @@ jobs:
101101 with :
102102 ref : ${{ github.event_name == 'issue_comment' && format('refs/pull/{0}/head', github.event.issue.number) || '' }}
103103
104+ - name : Set source package version
105+ id : source-version
106+ run : |
107+ if [[ "${GITHUB_EVENT_NAME}" == "release" ]]; then
108+ VERSION="${GITHUB_REF_NAME#v}"
109+ else
110+ VERSION="0.0.0.dev0+g$(git rev-parse --short=12 HEAD)"
111+ fi
112+ echo "version=${VERSION}" >> "${GITHUB_OUTPUT}"
113+ shell : bash
114+
104115 - name : Set pending status on PR
105116 if : github.event_name == 'issue_comment'
106117 run : |
@@ -142,8 +153,9 @@ jobs:
142153 labels : ${{ steps.meta-base.outputs.labels }}
143154 build-args : |
144155 CUDA_VER=${{ matrix.CUDA_SUFFIX.ver }}
145- GIT_ID=${{ github.event.pull_request.head.sha || github.sha }}
146156 # cache-from: type=registry,ref=ghcr.io/${{ github.repository }}-deps
157+ build-contexts : |
158+ source=.
147159
148160 - name : Generate artifact attestation for base image
149161 if : github.event_name == 'release'
@@ -171,10 +183,11 @@ jobs:
171183 labels : ${{ steps.meta.outputs.labels }}
172184 build-args : |
173185 CUDA_ARCHS=${{ matrix.CUDA_SUFFIX.label == 'cuda12' && '75-real;80-real;86-real;89-real;90' || '75-real;80-real;86-real;89-real;90-real;100-real;120' }}
174- GIT_ID =${{ github.event.pull_request.head.sha || github.sha }}
186+ SETUPTOOLS_SCM_PRETEND_VERSION_FOR_RAPIDS_SINGLECELL =${{ steps.source-version.outputs.version }}
175187 # cache-from: type=registry,ref=ghcr.io/${{ github.repository }}
176188 build-contexts : |
177189 rapids-singlecell-deps=docker-image://${{ fromJSON(steps.meta-base.outputs.json).tags[0] }}
190+ source=.
178191
179192 - name : Generate artifact attestation for main image
180193 if : github.event_name == 'release'
0 commit comments