From d38db06c3093a16ad98ca30706db00773fe9a8c1 Mon Sep 17 00:00:00 2001 From: Olaf Date: Tue, 25 Aug 2026 21:09:58 +0200 Subject: [PATCH] development docker image --- .gitea/workflows/development.yml | 35 ++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 .gitea/workflows/development.yml diff --git a/.gitea/workflows/development.yml b/.gitea/workflows/development.yml new file mode 100644 index 0000000..6bacb8b --- /dev/null +++ b/.gitea/workflows/development.yml @@ -0,0 +1,35 @@ +name: Build LinkLog Development Image + +on: + push: + branches: + - main + workflow_dispatch: + +env: + IMAGE_NAME: git.kolkman.org/olaf/link-log + +jobs: + development-image: + runs-on: ubuntu-latest + steps: + - name: Check out main + uses: actions/checkout@v4 + + - name: Log in to Gitea container registry + uses: docker/login-action@v3 + with: + registry: git.kolkman.org + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Build and publish development image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: ${{ env.IMAGE_NAME }}:development + labels: | + org.opencontainers.image.source=https://git.kolkman.org/olaf/Link-Log + org.opencontainers.image.revision=${{ gitea.sha }} + org.opencontainers.image.version=development \ No newline at end of file diff --git a/README.md b/README.md index d8b2df5..164b88a 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,8 @@ The extension's `update_url` points at the stable raw repository URL `https://gi The workflow requires Gitea Actions secrets named `REGISTRY_USERNAME`, `REGISTRY_PASSWORD`, and `GITEA_TOKEN`. The token needs permission to create releases and upload release assets; the registry credentials need permission to push the image. +Every push to `main` also runs `.gitea/workflows/development.yml` and publishes the current Docker image as `git.kolkman.org/olaf/link-log:development`. The workflow uses the same `REGISTRY_USERNAME` and `REGISTRY_PASSWORD` secrets and can also be started manually from Gitea Actions. + Appending a username to the root URL, such as `/alice`, opens that user's public feed and profile information. Configuration APIs require a bearer token returned by the login endpoint. User configuration uses the identity in that token. Plugin administration additionally requires an administrator account; the development `alice` account is seeded as an administrator, while `bob` is a standard user.