Skip to content

Commit

Permalink
Use node:14 docker image for all builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkcuys committed Feb 7, 2023
1 parent 465fbf3 commit fc14de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/website-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit fc14de5

Please sign in to comment.