Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,14 @@ jobs:
- name: Build
run: npm run build

- name: Generate changelog
id: changelog
uses: orhun/git-cliff-action@v3
with:
config: cliff.toml
args: --latest --strip header
env:
OUTPUT: CHANGELOG.md

- name: Create release archive
run: tar -czvf "millos-${{ github.ref_name }}.tar.gz" dist/

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.content }}
name: MillOS ${{ github.ref_name }}
generate_release_notes: true
files: millos-${{ github.ref_name }}.tar.gz
draft: false
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
Expand Down
6 changes: 3 additions & 3 deletions scada-proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Multi-stage build for minimal image size

# Build stage
FROM node:20-alpine AS builder
FROM node:22-alpine AS builder

WORKDIR /app

Expand All @@ -20,13 +20,13 @@ COPY src ./src
RUN npm run build

# Production stage
FROM node:20-alpine AS production
FROM node:22-alpine AS production

WORKDIR /app

# Install production dependencies only
COPY package*.json ./
RUN npm ci --only=production && npm cache clean --force
RUN npm ci --omit=dev && npm cache clean --force

# Copy built files
COPY --from=builder /app/dist ./dist
Expand Down