31 lines
593 B
YAML
31 lines
593 B
YAML
name: Build site container
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "site/**"
|
|
- ".github/workflows/build-container.yml"
|
|
pull_request:
|
|
paths:
|
|
- "site/**"
|
|
- ".github/workflows/build-container.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build container
|
|
run: docker build --tag kr0sh512-site:ci ./site
|
|
|
|
- name: Validate nginx configuration
|
|
run: docker run --rm kr0sh512-site:ci nginx -t
|