Skip to content

Update Node.js to v21 - autoclosed #255

Update Node.js to v21 - autoclosed

Update Node.js to v21 - autoclosed #255

Workflow file for this run

name: Build
env:
TOTAL_RUNNERS: 1
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
NEXT_PUBLIC_URL: ${{ secrets.NEXT_PUBLIC_URL }}
NEXT_PUBLIC_URL_ALT: ${{ secrets.NEXT_PUBLIC_URL_ALT }}
NEXT_PUBLIC_API_TOKEN: ${{ secrets.NEXT_PUBLIC_API_TOKEN }}
NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
on:
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: 20.x
- name: Install dependencies in production
run: npm ci --ignore-scripts
- name: Build the app
continue-on-error: false
run: npm run build
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Just Build
uses: docker/build-push-action@v5
with:
context: .
push: false
tags: ${{ secrets.APP_IMAGE }}
build-args: NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }}
NEXT_PUBLIC_URL=${{ secrets.NEXT_PUBLIC_URL }}
NEXT_PUBLIC_URL_ALT=${{ secrets.NEXT_PUBLIC_URL_ALT }}