Skip to content

blog: Add k8s with Flagger guest blog post #3984

blog: Add k8s with Flagger guest blog post

blog: Add k8s with Flagger guest blog post #3984

Workflow file for this run

name: Test site - pull_request
on:
pull_request: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y nginx && sudo systemctl start nginx
- name: Install node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install npm dependencies
run: npm install
- name: Run npm build
run: npm run build --if-present
- name: Copy to www
run: sudo rm /var/www/html/*.html && sudo cp -rf ./dist/* /var/www/html
- run: curl --fail-with-body http://localhost/
- run: google-chrome --headless --disable-gpu --screenshot --window-size=1280,1600 http://localhost
- name: 'Upload screenshot'
uses: actions/upload-artifact@v4
with:
name: screenshots
path: ./screenshot.png