Skip to content

Commit

Permalink
Use spack mirror add to add the buildcache instead of manual setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrizka committed Dec 28, 2024
1 parent fc3ee0f commit 5ae9435
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/concretize-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ jobs:
shell: spack-bash {0}
run: |
spack config --scope site add 'config:install_tree:padded_length:128'
spack config --scope site add 'mirrors:local-buildcache:url:"oci://ghcr.io/${{ github.repository_owner }}/spack-buildcache"'
spack config --scope site add 'mirrors:local-buildcache:signed:false'
spack config --scope site add 'mirrors:local-buildcache:access_pair:id_variable:GITHUB_USER'
spack config --scope site add 'mirrors:local-buildcache:secret_variable:GITHUB_TOKEN'
spack mirror add --scope site --oci-username ${{ github.actor }} --oci-password ${{ secrets.GITHUB_TOKEN }} local-buildcache oci://ghcr.io/${{ github.repository_owner }}/spack-buildcache"
- name: Checkout key4hep repository
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 5ae9435

Please sign in to comment.