Add versioning, release workflow and changelog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c22d452720
commit
7c3657d015
11 files changed
+222
-11
No files matched your search
+24
-4
@@ -5,9 +5,29 @@ describes a generic installation.
|
||||
|
||||
Every push to `main` (except docs and `.md` files) runs `.gitea/workflows/deploy.yml` on the
|
||||
act_runner on Unraid: it builds the image, pushes it to
|
||||
`gitea.anticarnist.de/tom/flypaper` (`:latest` and `:<short-sha>`), deploys
|
||||
`gitea.anticarnist.de/tom/flypaper` (`:main` and `:<short-sha>`), deploys
|
||||
`deploy/unraid/compose.yaml` and waits for `/health`. A manual run is possible from the Actions
|
||||
tab (`workflow_dispatch`).
|
||||
tab (`workflow_dispatch`). The stack follows `:main`, not the releases.
|
||||
|
||||
## Releases
|
||||
|
||||
A version tag runs `.gitea/workflows/release.yml`: it builds the image with that version,
|
||||
pushes `:X.Y.Z`, `:X.Y`, `:X` and `:latest` (a pre-release such as `v0.2.0-rc.1` gets only
|
||||
its own tag) and creates a Gitea release with the version's section of `CHANGELOG.md` as
|
||||
notes. Nothing is deployed.
|
||||
|
||||
1. Move the entries under `[Unreleased]` in `CHANGELOG.md` into a new version section with
|
||||
today's date, update the links at the bottom, commit and push.
|
||||
2. Tag and push:
|
||||
|
||||
```bash
|
||||
git tag -a v0.1.0 -m "Flypaper 0.1.0"
|
||||
git push origin v0.1.0
|
||||
```
|
||||
|
||||
If the release step fails (e.g. the built-in token may not create releases), the images are
|
||||
already pushed. Create the release by hand: Gitea → repo → Releases → New Release, pick the
|
||||
tag, title `Flypaper X.Y.Z`, paste the changelog section.
|
||||
|
||||
## Secrets
|
||||
|
||||
@@ -41,5 +61,5 @@ deploy.
|
||||
|
||||
## Rollback
|
||||
|
||||
Pin the image in `compose.yaml` to a previous `:<short-sha>` and push, or deploy that tag
|
||||
manually on Unraid.
|
||||
Pin the image in `compose.yaml` to a previous `:<short-sha>` or a release `:X.Y.Z` and push,
|
||||
or deploy that tag manually on Unraid.
|
||||
@@ -14,7 +14,8 @@ name: flypaper
|
||||
|
||||
services:
|
||||
flypaper:
|
||||
image: gitea.anticarnist.de/tom/flypaper:latest
|
||||
# :main follows every push to main; releases are tagged :X.Y.Z and :latest.
|
||||
image: gitea.anticarnist.de/tom/flypaper:main
|
||||
container_name: flypaper
|
||||
restart: always
|
||||
ports:
|
||||
|
||||
Reference in new issue
Block a user