Add ability to deploy develop branch on k8s - #963
Merged
Conversation
molok0aleks99
previously approved these changes
Aug 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds containerization and CI automation so that pushes to the develop branch build the Docusaurus site, package it into an nginx-based image (with basic auth), and push it to a Harbor registry for deployment in Kubernetes.
Changes:
- Introduces a multi-stage
Dockerfileto build the static site and serve it vianginxinc/nginx-unprivilegedwith basic auth. - Adds nginx + entrypoint script + docker-compose configuration for running the built site behind basic auth (including a
/healthendpoint). - Adds a GitHub Actions workflow to build and push a
developimage to Harbor; adds.envto.gitignoreand provides.env.example.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Dockerfile | Multi-stage build (Node build → nginx runtime) for serving prebuilt static site. |
| docker/start.sh | Entry script that sources vault secrets (if present), generates htpasswd, and starts nginx. |
| docker/nginx.conf | Nginx vhost config with basic auth and a /health endpoint. |
| docker-compose.yml | Local compose definition to build and run the container with required env vars. |
| .gitignore | Adds .env to avoid committing local secrets. |
| .github/workflows/deploy-develop.yml | Builds and pushes develop image to Harbor on pushes to develop. |
| .env.example | Documents required basic-auth environment variables. |
| .dockerignore | Reduces Docker build context by excluding common build/cache directories. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ramiz-lido
approved these changes
Aug 7, 2026
karinamaulitova
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now each puch in develop branch triggers build & upload of docker image to Harbor allowing to deploy it in k8s infrastructure