Skip to content

versions: add a section that describes how to retrieve version metadata #1969

versions: add a section that describes how to retrieve version metadata

versions: add a section that describes how to retrieve version metadata #1969

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@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: audit
- name: 'Checkout default branch to $GITHUB_WORKSPACE dir'
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.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