ci: add OCI registry login for buildcache push

This commit is contained in:
Dennis Klein
2025-11-29 10:49:51 +01:00
parent 7a8ccb8df6
commit 060a5f2599

View File

@@ -37,6 +37,11 @@ jobs:
gcc: ${{ matrix.gcc }} gcc: ${{ matrix.gcc }}
fresh: true fresh: true
- name: Login to OCI registry
shell: spack-bash {0}
run: spack oci login ghcr.io --username ${{ github.actor }} --password-stdin <<< ${{ secrets.GITHUB_TOKEN }}
- name: Push to buildcache - name: Push to buildcache
if: ${{ !cancelled() }} if: ${{ !cancelled() }}
shell: spack-bash {0}
run: spack buildcache push --unsigned --update-index local-buildcache run: spack buildcache push --unsigned --update-index local-buildcache