Skip to content

Commit

Permalink
Use autopush for buildcache.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrizka committed Dec 29, 2024
1 parent 159112e commit dbf9087
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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() }}

0 comments on commit dbf9087

Please sign in to comment.