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