mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Hardened CI, Split the image push, Kept latest for releases only
The workflow's token is read-only but in the Docker jobs, where it's only given to docker login after the image is built and checked; it goes through env, never into a script. Checkouts don't keep it on disk (a crate's build script can't read it), the actions are pinned to their commits (checkout, setup-python and upload-artifact v7, on Node 24), cargo builds with --locked (test.ps1 too), every job has a time limit, and the image tag is checked before use. latest only moves for versions without a "-". The login and the push are separate steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -90,8 +90,10 @@ in a manylinux 2.28 container, so they run with glibc 2.28 and later.
|
||||
The version is the workspace's (`Cargo.toml`), and `bindings/python/bakashrot.py`'s `__version__` must be the same.
|
||||
|
||||
The server's Docker image: `docker build -f docker/Dockerfile -t bakashrot-server .`, or CI's for amd64
|
||||
and arm64, checked by `docker/test.sh`, then pushed to `ghcr.io/aziascreations/bakashrot-server` (`<version>` and
|
||||
`latest`) on a tag. Running it: `docs/server.md`, "In Docker".
|
||||
and arm64, checked by `docker/test.sh`, then pushed to `ghcr.io/aziascreations/bakashrot-server` on a tag
|
||||
(`<version>`, and `latest` unless it's a pre-release: `v0.2.0-test2` doesn't move it). Running it: `docs/server.md`, "In Docker". The package was first pushed by hand, so the
|
||||
workflow may push to it only with the repository given write access in its settings on GitHub
|
||||
("Manage Actions access"), once; the package made public there too.
|
||||
|
||||
Publishing:
|
||||
* **The wheel** to Gitea's registry, with twine 6.1+ (for the license metadata) and a token with `write:package`:
|
||||
|
||||
Reference in New Issue
Block a user