This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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
|
||||
Reference in New Issue
Block a user