From 98aaf919b3dbbd149d5c362ebe3961e1ef6292b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Fri, 3 Nov 2023 10:59:06 +0000 Subject: [PATCH] Set authentication method for mirror before concretisation --- .github/workflows/build.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6f6d723..a7787dd 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,6 +23,10 @@ jobs: - name: Spack version run: spack debug report + - name: Set authentication method for mirror + run: | + spack -e . mirror set --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" local-buildcache + - name: Concretize run: spack -e . concretize @@ -33,6 +37,5 @@ jobs: - name: Push packages and update index run: | - spack -e . mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" local-buildcache spack -e . buildcache push -j $(($(nproc) + 1)) --base-image ubuntu:22.04 --unsigned --update-index local-buildcache if: always()