Skip to content

Commit b7f2346

Browse files
authored
create-deployment-spack.yml: Added spack-git-url input (#50)
1 parent c706d6f commit b7f2346

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: .github/workflows/create-deployment-spack.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Create Deployment Spack
22
on:
33
workflow_dispatch:
44
inputs:
5+
spack-git-url:
6+
type: string
7+
required: true
8+
default: 'https://github.com/access-nri/spack.git'
9+
description: Git URL for the spack repository
510
spack-version:
611
type: string
712
required: true
@@ -50,7 +55,7 @@ jobs:
5055
run: |
5156
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -i ${{ steps.ssh.outputs.private-key-path }} /bin/bash <<'EOT'
5257
mkdir ${{ env.ROOT_VERSION_LOCATION }} || exit $?
53-
git -C ${{ env.ROOT_VERSION_LOCATION }} clone -c feature.manyFiles=true https://github.com/spack/spack.git --branch ${{ inputs.spack-version }} --single-branch --depth=1
58+
git -C ${{ env.ROOT_VERSION_LOCATION }} clone -c feature.manyFiles=true ${{ inputs.spack-git-url }} --branch ${{ inputs.spack-version }} --single-branch --depth=1
5459
git -C ${{ env.ROOT_VERSION_LOCATION }} clone https://github.com/ACCESS-NRI/spack-packages.git --branch ${{ inputs.spack-packages-version }}
5560
git -C ${{ env.ROOT_VERSION_LOCATION }} clone https://github.com/ACCESS-NRI/spack-config.git --branch ${{ inputs.spack-config-version }}
5661
ln -s -r -v ${{ env.ROOT_VERSION_LOCATION }}/spack-config/v${{ steps.strip.outputs.version-dir }}/${{ vars.DEPLOYMENT_TARGET }}/* ${{ env.ROOT_VERSION_LOCATION }}/spack/etc/spack/

0 commit comments

Comments
 (0)