diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea2ef8d..6b5e529 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v7 + - name: Setup Node.js + uses: actions/setup-node@v7 + with: + node-version: 26.x - name: Install front run: | cd front diff --git a/.github/workflows/dev-cd.yml b/.github/workflows/dev-cd.yml index 56eba2b..3e204d9 100644 --- a/.github/workflows/dev-cd.yml +++ b/.github/workflows/dev-cd.yml @@ -20,10 +20,10 @@ jobs: url: https://dev-codepaster.azurewebsites.net steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Log in to GitHub container registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} diff --git a/.github/workflows/prod-cd.yml b/.github/workflows/prod-cd.yml index 6e786d2..7110b0c 100644 --- a/.github/workflows/prod-cd.yml +++ b/.github/workflows/prod-cd.yml @@ -16,10 +16,10 @@ jobs: url: https://codepaster.net/ steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Log in to GitHub container registry - uses: docker/login-action@v3 + uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} diff --git a/Dockerfile b/Dockerfile index 088b5ce..4fcfa4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-alpine AS base +FROM node:26-alpine3.24 AS base RUN mkdir -p /usr/app WORKDIR /usr/app @@ -26,9 +26,9 @@ COPY --from=build-backend /usr/app/dist ./ COPY --from=build-frontend /usr/app/dist $STATIC_FILES_PATH COPY ./back/package.json ./ COPY ./back/package-lock.json ./ -RUN npm ci --only=production +RUN npm ci --omit=dev -FROM nasdan/azure-pm2-nginx:nodejs-20-nginx-1.24 +FROM nasdan/azure-pm2-nginx:nodejs-26-nginx-1.30 ENV NODE_ENV=production ENV STATIC_FILES_PATH=./public ENV MOCK_REPOSITORY=false