From 8ffeff223c3437c4694248a8a0c25df317dc2480 Mon Sep 17 00:00:00 2001 From: Peter Van Dyken Date: Sat, 16 Sep 2023 11:06:13 -0400 Subject: [PATCH] Ues python version in gh-action test-template build --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab22cbb2..c11b97a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -130,7 +130,7 @@ jobs: uses: actions/cache@v3 with: path: container-test-template-cache - key: ${{ runner.os }}-test-template-cache-${{ hashFiles('containers/test-template/**') }} + key: ${{ runner.os }}-test-template-cache-${{ hashFiles('containers/test-template/**') }}-${{ matrix.python-version }} - name: Inject container-test-template-cache into docker uses: reproducible-containers/buildkit-cache-dance@v2.1.2 @@ -144,8 +144,10 @@ jobs: cache-to: type=gha,mode=max push: false load: true - tags: snakebids/test-template:dev + tags: snakebids/test-template:${{ matrix.python-version }} platforms: linux/amd64 + build-args: | + PYTHON_VERSION=${{ matrix.python-version }} #---------------------------------------------- # install your root project, if required #----------------------------------------------