From d374c96fbc34ee991f58af876c11f73dc8ca989a Mon Sep 17 00:00:00 2001 From: xkm Date: Thu, 7 May 2026 14:07:51 +0000 Subject: [PATCH] ci: add ubuntu --- .gitea/workflows/ubuntu.yaml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitea/workflows/ubuntu.yaml diff --git a/.gitea/workflows/ubuntu.yaml b/.gitea/workflows/ubuntu.yaml new file mode 100644 index 0000000..3c54b19 --- /dev/null +++ b/.gitea/workflows/ubuntu.yaml @@ -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 }} \ + . \ No newline at end of file