diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 838977a..92abf92 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -17,11 +17,11 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "22" - name: Install Frontend Dependencies working-directory: ./frontend - run: npm ci + run: npm ci --legacy-peer-deps - name: Run Frontend Tests working-directory: ./frontend diff --git a/Dockerfile b/Dockerfile index 49e5c27..0975e09 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ # Stage 1: Build the frontend -FROM node:20-alpine AS frontend-builder +FROM node:22-alpine AS frontend-builder WORKDIR /app/frontend COPY frontend/package*.json ./ -RUN npm ci +RUN npm ci --legacy-peer-deps COPY frontend/ ./ RUN npm run build # Stage 2: Build the backend -FROM node:20-alpine AS backend-builder +FROM node:22-alpine AS backend-builder WORKDIR /app/backend COPY backend/package*.json ./ RUN npm ci @@ -15,7 +15,7 @@ COPY backend/ ./ RUN npm run build # Stage 3: Production -FROM node:20-alpine AS production +FROM node:22-alpine AS production # Install build tools for native modules like better-sqlite3 RUN apk add --no-cache python3 make g++ WORKDIR /app diff --git a/ansible/deploy.yml b/ansible/deploy.yml index 5320da9..492063e 100644 --- a/ansible/deploy.yml +++ b/ansible/deploy.yml @@ -12,7 +12,7 @@ ansible.builtin.file: path: "{{ deploy_dir }}" state: directory - mode: '0755' + mode: "0755" - name: Copy ARM tarball ansible.builtin.copy: @@ -33,4 +33,5 @@ ansible.builtin.command: docker compose up -d args: chdir: "{{ deploy_dir }}" - changed_when: true + register: compose_up + changed_when: "'Started' in compose_up.stdout or 'Created' in compose_up.stdout or 'Recreating' in compose_up.stdout"