40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Build Debian
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- name: debian:trixie
|
|
dockerfile: debian/Dockerfile
|
|
tags: ${{ gitea.server_url }}/cn/debian:trixie,${{ gitea.server_url }}/cn/debian:latest
|
|
- name: debian:bookworm
|
|
dockerfile: debian/bookworm.Dockerfile
|
|
tags: ${{ gitea.server_url }}/cn/debian:bookworm
|
|
|
|
name: Build ${{ matrix.name }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://gitea.starryskymeow.cn/mirrors/checkout@v6
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: https://gitea.starryskymeow.cn/mirrors/docker-login-action@v4
|
|
with:
|
|
registry: ${{ gitea.server_url }}
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Build and push
|
|
uses: https://gitea.starryskymeow.cn/mirrors/docker-build-push-action@v7
|
|
with:
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
file: ${{ matrix.dockerfile }}
|
|
tags: ${{ matrix.tags }} |