-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 955 Bytes
/
matrix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test
on:
push:
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
LETTER:
- "a"
- "b"
runs-on: ubuntu-22.04
steps:
- name: Install uniget
uses: uniget-org/uniget-action@v1
with:
prefix: helper
tools: gojq regclient
- name: Debug
run: |
printenv | sort
- name: Process tools
run: |
echo "Filter: ${{ matrix.LETTER }}"
helper/usr/local/bin/regctl manifest get ghcr.io/uniget-org/tools/metadata:main --format raw-body \
| helper/usr/local/bin/jq --raw-output '.layers[0].digest' \
| xargs -I{} \
helper/usr/local/bin/regctl blob get ghcr.io/uniget-org/tools/metadata:main {} \
| tar --extract --gzip --to-stdout \
| helper/usr/local/bin/jq --raw-output --arg prefix "${{ matrix.LETTER }}" '.tools[] | select(.name | startswith($prefix)) | "\(.name):\(.version)"'