Skip to content

Commit

Permalink
try do define a more sensible base image that's usable
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Nov 4, 2024
1 parent 379fe94 commit 6b3c8d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ jobs:
- uses: mxschmitt/action-tmate@v3
if: failure()

# Calculate base image for the build cache
- run: |
if [ "${{ inputs.image }}" != "none" ]; then
echo "BASE_IMAGE=${{ inputs.image }}" >> $GITHUB_ENV
elif [ "${{ inputs.os }}" == "ubuntu-22.04 ]; then
echo "BASE_IMAGE=ubuntu:22.04" >> $GITHUB_ENV
elif [ "${{ inputs.os }}" == "ubuntu-24.04 ]; then
echo "BASE_IMAGE=ubuntu:24.04" >> $GITHUB_ENV
else
echo "BASE_IMAGE=ubuntu:24.04" >> $GITHUB_ENV
fi
- name: Push packages and update index
run: |
spack -e . mirror set --push --oci-username ${{ github.actor }} --oci-password "${{ secrets.GITHUB_TOKEN }}" local-buildcache
Expand Down

0 comments on commit 6b3c8d1

Please sign in to comment.