actions #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Debian 镜像构建 | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- debian/** | |
- .github/workflows/image-build.yml | |
- .github/workflows/debian.yml | |
schedule: | |
- cron: '0 8 1 * *' | |
jobs: | |
debian: | |
uses: ./.github/workflows/image-build.yml | |
name: Debian | |
strategy: | |
matrix: | |
debian-version: ['12', '11'] | |
is-slim: [false, true] | |
include: | |
- debian-latest-version: '12' | |
with: | |
image-label-title: Debian | |
image-label-description: Debian 系统基础镜像 | |
image-label-version: "${{ matrix.debian-version }}" | |
image-build-context: ./debian/${{ matrix.debian-version }} | |
image-build-args: | | |
BASE_IMAGE=debian:${{ matrix.debian-version }}-slim | |
IS_SLIM=${{ matrix.is-slim && 'slim' || '' }} | |
image-name: >- | |
bromine0x23/debian | |
ghcr.io/bromine0x23/debian | |
image-tag: >- | |
${{ matrix.debian-version }}${{ matrix.is-slim && '-slim' || '' }} | |
${{ matrix.debian-version == matrix.debian-latest-version && (matrix.is-slim && 'slim' || 'latest') || '' }} | |
secrets: inherit |