Skip to content

Commit

Permalink
Use custom image to run puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkcuys committed Feb 21, 2023
1 parent 66d6ace commit 0d248cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/website-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
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 --user $UID:$GID -e TEST_SERVER_URL=http://site:3000 ghcr.io/puppeteer/puppeteer::19.7.1 /bin/sh -c "npm install --only=dev && npm run test"
run: docker run --rm --network test-net --volume `pwd`:/opt/app --workdir /opt/app -e TEST_SERVER_URL=http://site:3000 ghcr.io/p2pu/puppeteer-docker:master /bin/sh -c "npm install --only=dev && npm run test"

- run: 'aws s3 sync ./_site/ s3://$S3_BUCKET/ --delete --storage-class REDUCED_REDUNDANCY --acl public-read'
shell: bash
Expand Down

0 comments on commit 0d248cd

Please sign in to comment.