mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 23:38:08 +00:00
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
name: Build `packaging` Docker images
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
paths:
|
|
- ".github/workflows/build-packaging-images.yml"
|
|
- "bin/install-packaging-tools.sh"
|
|
- "package/docker/**"
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/build-packaging-images.yml"
|
|
- "bin/install-packaging-tools.sh"
|
|
- "package/docker/**"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
# Read `on-trigger.yml` for the rationale behind this concurrency group name.
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref == 'refs/heads/develop' && github.sha || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
build-merge:
|
|
name: Build and push `packaging-${{ matrix.distro.name }}` image
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Newest of each distro: these images only wrap pre-built binaries, so
|
|
# they set no floor for consumers. build_pkg.py pins the RPM dist tag.
|
|
distro:
|
|
- name: debian
|
|
base_image: debian:trixie
|
|
# AlmaLinux rather than UBI, which does not ship rpm-sign.
|
|
- name: rhel
|
|
base_image: almalinux:10
|
|
uses: XRPLF/actions/.github/workflows/build-multiarch-image.yml@65d5a0bd72be4ecea95cff0673a6e0672ab5243a
|
|
with:
|
|
image_name: xrpld/packaging-${{ matrix.distro.name }}
|
|
dockerfile: package/docker/Dockerfile
|
|
base_image: ${{ matrix.distro.base_image }}
|
|
push: ${{ github.event_name == 'push' }}
|