Skip to content

Force update index

Force update index #4

Workflow file for this run

name: Force update index
on:
workflow_dispatch: {}
jobs:
update-index:
runs-on: ubuntu-22.04
permissions:
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup spack
uses: spack/[email protected]
with:
ref: develop
- name: Add mochi-spack-packages
run: |
git clone https://github.com/mochi-hpc/mochi-spack-packages
spack repo add mochi-spack-packages
- name: Add mirror
run: |
spack mirror add \
--oci-username ${{ github.actor }} \
--oci-password "${{ secrets.GITHUB_TOKEN }}" \
mochi-buildcache oci://ghcr.io/mochi-hpc/mochi-spack-buildcache
- name: Update index
run: |
spack buildcache update-index mochi-buildcache