Publish container image to Gitea Packages and switch netcup deploy to pull #39
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Wire the existing
.gitea/workflows/deploy.ymljob to publish the librenotes container image to a registry on every push tomainand on tagv*, and switch the netcup deployment from build-on-host to pull-on-host. Currently the deploy job is gated onvars.DEPLOY_ENABLED == 'true'and skipped because no registry/secrets exist; netcup builds the image locally viacompose.netcup.yaml(build: .).Background
git.librete.ch/v2/<owner>/<image>and authenticates with a personal/robot access token.ubuntu-latest) already executes CI workflows.Tasks
package:writeonpublicorgREGISTRY=git.librete.chREGISTRY_USER=<robot-name>REGISTRY_PASS=<token>DEPLOY_HOST=root@netcupDEPLOY_KEY=<deploy SSH private key>(issue/track via separate ops issue if needed)DEPLOY_PATH=/srv/librenotesHEALTH_URL=https://ln.cloud.librete.ch/healthzDEPLOY_ENABLED=truecompose.netcup.yamlbuild: .withimage: ${LIBRENOTES_IMAGE}and resolveLIBRENOTES_IMAGEfrom.envon the host (e.g.git.librete.ch/public/librenotes:main)mainpush triggers build → push → deploy → health checkv*tag push pins the immutable tag inLIBRENOTES_IMAGEon the hostAcceptance Criteria
git.librete.ch/public/librenotes:mainandgit.librete.ch/public/librenotes:v0.1.0exist as packagesmainpush/srv/librenotes/no longer needs a Go toolchain or build context (onlycompose.netcup.yaml+.env)LIBRENOTES_IMAGEto a prior tag anddocker compose ... up -dDependencies