forked from tianon/docker-brew-debian
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.19 KB
/
ci.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
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Container Images
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
matrix:
name: Build Matrix
runs-on: ubuntu-latest
outputs:
full_json: ${{ steps.releases.outputs.json }}
codename_arch" ${{ steps.releases.outputs.codename_arch }}
steps:
- name: Releases Info
id: releases
use: vicamo/actions-library/debian-releases@v1
- name: Extract codename/arch
env:
FULL_JSON: ${{ steps.releases.outputs.json }}
run: |
json="$(echo "${FULL_JSON}" | \
jq -c -M '[ .[] as $s | $s.architectures[] | {"codename":$s.codename,"suite":$s.suite,"arch":.} ]')"
echo "::group::Built JSON"
echo "${json}" | jq
echo "::endgroup::"
echo "codename_arch=${json}" | tee -a "${GITHUB_OUTPUT}"
container-tarball:
name: Container Tarballs
runs-on: ubuntu-latest
needs:
- matrix
strategy:
matrix:
include: ${{ fromJSON(needs.matrix.outputs.codename_arch) }}
steps:
- run: echo "true"