Skip to content

chore: add release workflow#108

Merged
martian56 merged 1 commit into
mainfrom
107-chore-release-workflow
May 7, 2026
Merged

chore: add release workflow#108
martian56 merged 1 commit into
mainfrom
107-chore-release-workflow

Conversation

@martian56
Copy link
Copy Markdown
Member

This pull request introduces a complete automated release workflow for the project, including Docker image builds for both the API and UI, and the creation of GitHub releases. It adds a new GitHub Actions workflow, Dockerfile, and Nginx configuration for the UI, enabling consistent and automated builds and deployments.

Release automation:

  • Added a .github/workflows/release.yml GitHub Actions workflow that builds and pushes multi-architecture Docker images for both the API and UI upon pushing SemVer tags, and creates GitHub releases with appropriate tagging and prerelease handling.

UI build and deployment:

  • Added a ui/Dockerfile that builds the UI using Node.js, then serves it with Nginx, supporting an optional VITE_API_BASE_URL build argument for API endpoint configuration.
  • Added an Nginx configuration file ui/nginx.conf to efficiently serve the built UI, including caching for assets and security best practices for hidden files.

Closes #107

@martian56 martian56 added this to the Deadline milestone May 7, 2026
@martian56 martian56 self-assigned this May 7, 2026
Copilot AI review requested due to automatic review settings May 7, 2026 12:44
@martian56 martian56 added the documentation Improvements or additions to documentation label May 7, 2026
@martian56 martian56 linked an issue May 7, 2026 that may be closed by this pull request
@martian56 martian56 merged commit 21fa1bc into main May 7, 2026
10 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds an automated release pipeline that builds and publishes multi-arch Docker images for the API and UI to GHCR on SemVer tag pushes, and creates a corresponding GitHub Release. It also introduces a production UI container image built with Vite and served via Nginx.

Changes:

  • Added a tag-triggered GitHub Actions release workflow to build/push API + UI images and create GitHub releases (with prerelease handling).
  • Added a multi-stage ui/Dockerfile to build the Vite UI and serve it with Nginx.
  • Added an Nginx config for SPA routing and long-term caching of built assets.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/release.yml Builds/pushes multi-arch API/UI images to GHCR on SemVer tags and creates GitHub releases.
ui/Dockerfile Multi-stage UI image build (Node builder → Nginx runtime) with optional VITE_API_BASE_URL.
ui/nginx.conf Nginx SPA config with /assets caching and dotfile blocking.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +177 to +181
body: |
Container images:

- **API**: `${{ steps.img.outputs.api }}:${{ github.ref_name }}`
- **UI**: `${{ steps.img.outputs.ui }}:${{ github.ref_name }}`
Comment thread ui/Dockerfile
Comment on lines +12 to +13
COPY . .
RUN npm run build
Comment thread ui/nginx.conf
location / {
try_files $uri $uri/ /index.html;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE] Release workflow

2 participants