From 5deace1967552fa447ed1f14c312883f9c0ec815 Mon Sep 17 00:00:00 2001 From: Agent Date: Fri, 18 Sep 2026 12:31:15 -0400 Subject: [PATCH] feat: add Forgejo Action workflow to build and publish Docker image Add a Forgejo Actions workflow (docker-publish.yml) that builds the mailship Docker image on every merge to main and publishes it to the Forgejo container registry at forgejo.lorentz.is/matt/mailship. Tags pushed: :latest and : Serves the README's self-hosting path (docker pull) and future pull-based deploys. --- .forgejo/workflows/docker-publish.yml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .forgejo/workflows/docker-publish.yml diff --git a/.forgejo/workflows/docker-publish.yml b/.forgejo/workflows/docker-publish.yml new file mode 100644 index 0000000..df918ed --- /dev/null +++ b/.forgejo/workflows/docker-publish.yml @@ -0,0 +1,36 @@ +# Forgejo Action — build + publish Docker image to Forgejo container registry on merge to main +--- +name: Docker + +on: + push: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Forgejo Container Registry + uses: docker/login-action@v3 + with: + registry: forgejo.lorentz.is + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + forgejo.lorentz.is/matt/mailship:${{ github.sha }} + forgejo.lorentz.is/matt/mailship:latest \ No newline at end of file