Files
cn-dockerfile/.gitea/workflows/ubuntu.yaml
2026-05-07 14:07:51 +00:00

39 lines
970 B
YAML

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 }} \
.