ci: use matrix to support multi image build
This commit is contained in:
@@ -1,10 +1,28 @@
|
||||
name: Build Debian
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
debian-trixie:
|
||||
runs-on: ubuntu-latest
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: debian:latest
|
||||
dockerfile: debian/Dockerfile
|
||||
tag: debian:latest
|
||||
- name: debian-trixie
|
||||
dockerfile: debian/Dockerfile
|
||||
tag: debian:trixie
|
||||
- name: debian:bookworm
|
||||
dockerfile: debian/bookworm.Dockerfile
|
||||
tag: debian:bookworm
|
||||
|
||||
name: Build ${{ matrix.name }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
@@ -19,6 +37,6 @@ jobs:
|
||||
run: |
|
||||
docker build --push \
|
||||
--platform=linux/amd64,linux/arm64 \
|
||||
-f debian/Dockerfile \
|
||||
-t ${{ vars.DOCKER_USERNAME }}/debian:trixie \
|
||||
-f ${{ matrix.dockerfile }} \
|
||||
-t ${{ vars.DOCKER_USERNAME }}/${{ matrix.tag }} \
|
||||
.
|
||||
Reference in New Issue
Block a user