From 3269151e9ba8377268710198010a74792020acad Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Sun, 14 Jun 2026 15:49:15 -0400 Subject: [PATCH] new workflow to build and push to docker hub --- .gitea/workflows/docker.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/docker.yml diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml new file mode 100644 index 0000000..36bc434 --- /dev/null +++ b/.gitea/workflows/docker.yml @@ -0,0 +1,34 @@ +name: Push Docker + +on: + push: + tags: + - '[0-9.].?[0-9]?.?[0-9]?' + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build image + uses: docker/build-push-action@v5 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: | + ${{ vars.DOCKERHUB_TARGET }}:latest + ${{ vars.DOCKERHUB_TARGET }}:${{ github.ref_name }} +