ci: add ubuntu

This commit is contained in:
xkm
2026-05-07 14:07:51 +00:00
parent 02bdcc004d
commit d374c96fbc

View File

@@ -0,0 +1,39 @@
name: Build Ubuntu
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: ubuntu:latest
dockerfile: ubuntu/Dockerfile
tag: ubuntu:latest
- name: ubuntu:26.04
dockerfile: ubuntu/Dockerfile
tag: ubuntu:26.04
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:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
run: |
docker build --push \
--platform=linux/amd64,linux/arm64 \
-f ${{ matrix.dockerfile }} \
-t ${{ vars.DOCKER_USERNAME }}/${{ matrix.tag }} \
.