Skip to content

Commit

Permalink
using a view and oci-password-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Dec 11, 2024
1 parent 6d9b637 commit bba4a20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,21 @@ runs:
run: |
spack -e myenv mirror set --push \
--oci-username ${{ github.actor }} \
--oci-password "${{ inputs.build-cache-token }}" mochi-buildcache
--oci-password-variable BUILD_CACHE_TOKEN mochi-buildcache
- name: Push dependency packages to buildcache and update index
if: ${{ (inputs.build-cache-token != 'unspecified') && (inputs.push-only-dependencies == 'true') }}
shell: bash
run: |
export BUILD_CACHE_TOKEN=${{ inputs.build-cache-token }}
spack -e myenv buildcache push --base-image ubuntu:22.04 \
--unsigned --only dependencies --update-index mochi-buildcache
- name: Push dependency packages to buildcache and update index
if: ${{ (inputs.build-cache-token != 'unspecified') && (inputs.push-only-dependencies == 'false') }}
shell: bash
run: |
export BUILD_CACHE_TOKEN=${{ inputs.build-cache-token }}
spack -e myenv buildcache push --base-image ubuntu:22.04 \
--unsigned --update-index mochi-buildcache
Expand Down
9 changes: 4 additions & 5 deletions spack.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# This file defines the spack environment used by github actions
# (tests, codeql, and codecov) when building and testing the code.
# In particular the "config" field sets the installation path and
# spack caches to ~/.spack-ci so that they can be retrieved using
# the github cache action across runs.
spack:
specs: []
view: /opt/view
packages:
all:
require: 'target=x86_64_v3'
concretizer:
unify: true
reuse: true
Expand Down

0 comments on commit bba4a20

Please sign in to comment.