Skip to content

Commit 095a515

Browse files
committed
ci: Run containers snapshot in one step
1 parent 3a6b4ca commit 095a515

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/containers_config.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
env:
1717
FORCE_COLOR: 1
18-
strategy:
19-
matrix:
20-
container_type: ['docker', 'singularity'] # TODO , "singularity_oras"]
21-
architecture: ['amd64', 'arm64']
2218
steps:
23-
# TODO
24-
# - uses: earthly/actions/setup-earthly@v1
25-
# with:
26-
# version: v0.8.13
27-
# Use the @nf-core-bot token to check out so we can push later
2819
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2920
with:
3021
token: ${{ secrets.nf_core_bot_auth_token }}
@@ -34,12 +25,17 @@ jobs:
3425
version: "25.01.0-edge"
3526
- name: Snapshot containers
3627
run: |
37-
if [ "${{ matrix.architecture }}" == "arm64" ]; then
38-
profile="wave,${{ matrix.container_type }},arm"
39-
else
40-
profile="wave,${{ matrix.container_type }}"
41-
fi
42-
nextflow inspect . -profile $profile -format config > conf/containers/containers_${{ matrix.container_type }}_${{ matrix.architecture }}.config
28+
mkdir -p conf/containers
29+
for container in docker singularity; do
30+
for arch in amd64 arm64; do
31+
if [ "$arch" = "arm64" ]; then
32+
profile="wave,$container,arm"
33+
else
34+
profile="wave,$container"
35+
fi
36+
nextflow inspect . -profile $profile -format config > conf/containers/containers_${container}_${arch}.config
37+
done
38+
done
4339
- name: Commit & push changes
4440
id: commit-and-push
4541
run: |

0 commit comments

Comments
 (0)