From fc14de5378be231c1ce21016133c0afec26ec9ad Mon Sep 17 00:00:00 2001 From: Dirk Uys Date: Tue, 7 Feb 2023 11:56:45 +0200 Subject: [PATCH] Use node:14 docker image for all builds --- .github/workflows/website-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/website-deploy.yml b/.github/workflows/website-deploy.yml index 65f93d5d..ee3b0a97 100644 --- a/.github/workflows/website-deploy.yml +++ b/.github/workflows/website-deploy.yml @@ -50,7 +50,7 @@ jobs: run: cat ./_data/teams.json | python3 _deploy/team_pages.py - name: build frontend - run: docker run --rm --volume `pwd`:/opt/app --workdir /opt/app node:12-buster-slim /bin/sh -c "npm install && npm run build" + run: docker run --rm --volume `pwd`:/opt/app --workdir /opt/app node:14 /bin/sh -c "npm install && npm run build" - name: build jekyll site run: docker run -v `pwd`:/opt/app -v `pwd`/_site:/opt/app/_site local/p2pu-website jekyll build --future --config _config.yml,_production.yml @@ -59,7 +59,7 @@ jobs: run: docker network create test-net - name: test setup - run: docker run --name site --workdir /tmp -d --network test-net --publish 3000:3000 --volume `pwd`/_site:/var/www node:16 /bin/sh -c "npm i serve && npx serve -l 3000 /var/www" + run: docker run --name site --workdir /tmp -d --network test-net --publish 3000:3000 --volume `pwd`/_site:/var/www node:14 /bin/sh -c "npm i serve && npx serve -l 3000 /var/www" - name: run test run: docker run --rm --network test-net --volume `pwd`:/opt/app --workdir /opt/app -e TEST_SERVER_URL=http://site:3000 p2pu/puppeteer-docker /bin/sh -c "npm install --only=dev && npm run test"