feat(deploy): pull published image on netcup instead of building
compose.netcup.yaml now references ${LIBRENOTES_IMAGE} with pull_policy: always
and resets the base build context. .env.netcup.example documents the new
LIBRENOTES_IMAGE key (default git.librete.ch/public/librenotes:main, pin to
immutable tag for prod). Rollback: edit .env LIBRENOTES_IMAGE + up -d.
This commit is contained in:
+6
-1
@@ -1,5 +1,10 @@
|
||||
# Server-side .env for netcup deploy. Copy to /srv/librenotes/.env on the host.
|
||||
# Used by: docker compose -f docker-compose.yml -f compose.netcup.yaml up -d --build
|
||||
# Used by: docker compose -f compose.yaml -f compose.netcup.yaml up -d
|
||||
|
||||
# Image to pull. Main pushes update :main; tag pushes pin to immutable
|
||||
# tags such as :v0.1.0. The deploy workflow rewrites this line on tag
|
||||
# pushes; rollback is `perl -i -pe 's|...|=...:vX.Y.Z|' .env && up -d`.
|
||||
LIBRENOTES_IMAGE=git.librete.ch/public/librenotes:main
|
||||
|
||||
# Public origin (caddy reverse-proxies to librenotes:8080)
|
||||
LIBRENOTES_BASE_URL=https://ln.cloud.librete.ch
|
||||
|
||||
Reference in New Issue
Block a user