diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 20f7c02..86718e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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') }} diff --git a/scada-proxy/Dockerfile b/scada-proxy/Dockerfile index 695cc89..e5f020b 100644 --- a/scada-proxy/Dockerfile +++ b/scada-proxy/Dockerfile @@ -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 @@ -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