Skip to content

ci: build multiarched docker images #4

ci: build multiarched docker images

ci: build multiarched docker images #4

Workflow file for this run

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:
releases:
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
uses: 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:
- releases
strategy:
matrix:
include: ${{ fromJSON(needs.releases.outputs.codename_arch) }}
steps:
- run: echo "true"