CD Prep
Dependencies Needed on Destination
(These are not included in the Docker image)
Setup Steps
- Install the dependencies listed above.
- Set up Nginx:
- Build the Docker images.
- Configure Nginx to reverse proxy the application.
- Configure
adnanh/webhook
to listen for GitHub webhooks:
- Ensure that only verified GitHub IPs are allowed through Nginx, blocking all others with a
403 Forbidden
.
CD Workflow
- GitHub Release: When a new release is made, the GitHub webhook posts to the server.
* (1)
- Webhook Trigger:
adnanh/webhook
triggers the redeploy.sh
script, which runs docker compose build
.
Notes:
- (1): Only requests from verified GitHub IPs are allowed by Nginx on the webhook route. All other requests are blocked with a
403 Forbidden
response.