This folder contains helper files to deploy the stack to a server using Docker Compose and images pushed to GHCR.
- On CI, images are built and pushed to GHCR with tag
${GITHUB_SHA}and thecommonfolder is uploaded as an artifact. - On the server, download/extract the repo (or just keep docker-compose files), copy the
deploy/folder, and prepare an.envfile based ondeploy/env.example. - Provide
IMAGE_TAGfrom the CI build you want to deploy. Optionally, provideCOMMON_SRC_DIRorCOMMON_SRC_ARCHIVEto update thecommondirectory. - Run the deploy script:
set -a source deploy/.env set +a bash deploy/deploy.sh
- The override file
docker-compose.deploy.ymlswitches services to pull from GHCR instead of building locally. - Ensure the server has access to GHCR (log in with
docker login ghcr.io). - The script replaces the
commondirectory if provided and restarts the stack.