Skip to content

Commit

Permalink
ci: build multiarched docker images
Browse files Browse the repository at this point in the history
Signed-off-by: You-Sheng Yang <[email protected]>
  • Loading branch information
vicamo committed Apr 9, 2024
1 parent 1585f5a commit bd04f1f
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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"

0 comments on commit bd04f1f

Please sign in to comment.