Skip to content

Commit

Permalink
Merge pull request #314 from nextstrain/trs/ci/use-singularity-3.x
Browse files Browse the repository at this point in the history
dev: Test against the SingularityCE 3.x series in CI
  • Loading branch information
joverlee521 authored Sep 19, 2023
2 parents ea792b4 + f98d432 commit 3343024
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/setup-integration-tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,14 @@ runs:
pushd "$(mktemp -d)"
export "$(grep UBUNTU_CODENAME /etc/os-release)"
# Download latest SingularityCE .deb for this version of Ubuntu
# Download latest SingularityCE 3.x series .deb for this version of Ubuntu
#
# XXX TODO: Start testing the SingularityCE 4.x series.
# -trs, 19 Sept 2023
url="$(
curl -fsSL --proto '=https' -H "Authorization: Bearer $GITHUB_TOKEN" \
https://api.github.com/repos/sylabs/singularity/releases/latest \
| jq -r '.assets | map(select(.name | endswith("\(env.UBUNTU_CODENAME)_amd64.deb"))) | .[0].browser_download_url')"
"https://api.github.com/repos/sylabs/singularity/releases?per_page=100" \
| jq -r 'map(select(.tag_name | startswith("v3."))) | .[0].assets | map(select(.name | endswith("\(env.UBUNTU_CODENAME)_amd64.deb"))) | .[0].browser_download_url')"
curl -fsSL --proto '=https' "$url" > singularity.deb
Expand Down

0 comments on commit 3343024

Please sign in to comment.