Skip to content

Add Chainguard Repo cooldown and pull-through cache #3212

Add Chainguard Repo cooldown and pull-through cache

Add Chainguard Repo cooldown and pull-through cache #3212

name: Nginx Configuration Validation
on:
push:
branches:
- main
pull_request:
permissions: {}
jobs:
validate:
runs-on: ubuntu-latest
if: github.repository == 'chainguard-dev/edu'
permissions:
contents: read
steps:
- name: 'Github Actions Runner'
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
with:
egress-policy: audit
- name: 'Checkout default branch to $GITHUB_WORKSPACE dir'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 16
- name: Build project
run: |
npm install
npm run build
- name: Run Nginx validation
run: |
docker run --rm -v $(pwd)/nginx.conf:/etc/nginx/nginx.conf -v $(pwd)/public/_aliases:/etc/nginx/aliases -v $(pwd)/public:/usr/share/nginx/html/ cgr.dev/chainguard/nginx:latest-dev -t