Skip to content

Add ability to deploy develop branch on k8s - #963

Merged
karinamaulitova merged 4 commits into
mainfrom
develop
Aug 7, 2026
Merged

Add ability to deploy develop branch on k8s#963
karinamaulitova merged 4 commits into
mainfrom
develop

Conversation

@cakeinpanic

Copy link
Copy Markdown
Contributor

Now each puch in develop branch triggers build & upload of docker image to Harbor allowing to deploy it in k8s infrastructure

molok0aleks99
molok0aleks99 previously approved these changes Aug 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Dockerfile to build the static site and serve it via nginxinc/nginx-unprivileged with basic auth.
  • Adds nginx + entrypoint script + docker-compose configuration for running the built site behind basic auth (including a /health endpoint).
  • Adds a GitHub Actions workflow to build and push a develop image to Harbor; adds .env to .gitignore and 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.

Comment thread docker/start.sh Outdated
Comment thread .dockerignore
Comment thread .github/workflows/deploy-develop.yml Outdated
Comment thread .github/workflows/deploy-develop.yml
@karinamaulitova
karinamaulitova merged commit 14f431c into main Aug 7, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants