ci: add ubuntu
This commit is contained in:
39
.gitea/workflows/ubuntu.yaml
Normal file
39
.gitea/workflows/ubuntu.yaml
Normal 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 }} \
|
||||||
|
.
|
||||||
Reference in New Issue
Block a user