From dbf90877dca68d09bdfa6d9578357082b2e48402 Mon Sep 17 00:00:00 2001 From: Karol Krizka Date: Sun, 29 Dec 2024 22:02:51 +0100 Subject: [PATCH] Use autopush for buildcache. --- .github/workflows/build-template.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build-template.yaml b/.github/workflows/build-template.yaml index ce6f6a7..df5d365 100644 --- a/.github/workflows/build-template.yaml +++ b/.github/workflows/build-template.yaml @@ -51,7 +51,7 @@ jobs: shell: spack-bash {0} run: | spack config add 'config:install_tree:padded_length:128' - spack mirror add --oci-username '${{ github.actor }}' --oci-password '${{ secrets.GITHUB_TOKEN }}' --unsigned local-buildcache 'oci://ghcr.io/${{ github.repository_owner }}/spack-buildcache' + spack mirror add --oci-username '${{ github.actor }}' --oci-password '${{ secrets.GITHUB_TOKEN }}' --unsigned --autopush local-buildcache 'oci://ghcr.io/${{ github.repository_owner }}/spack-buildcache' - name: Apply the patches shell: spack-bash {0} run: | @@ -74,6 +74,3 @@ jobs: run: | spack env activate mucoll-spack/environments/mucoll-${{ inputs.target }} spack install --only-concrete --no-add --fail-fast - - name: Push Spack Packages - run: spack -e mucoll-spack/environments/mucoll-${{ inputs.target }} buildcache push --base-image gitlab-registry.cern.ch/linuxsupport/alma9-base:latest --update-index local-buildcache - if: ${{ !cancelled() }} \ No newline at end of file