Skip to content

Commit

Permalink
Add initial jq-based templating engine
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jun 16, 2021
1 parent 55001e0 commit 517c64f
Show file tree
Hide file tree
Showing 31 changed files with 2,193 additions and 290 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*/**/Dockerfile linguist-generated
/*/**/docker-entrypoint.sh linguist-generated
/Dockerfile*.template linguist-language=Dockerfile
22 changes: 22 additions & 0 deletions .github/workflows/verify-templating.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Verify Templating

on:
pull_request:
push:

defaults:
run:
shell: 'bash -Eeuo pipefail -x {0}'

jobs:
apply-templates:
name: Check For Uncomitted Changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Apply Templates
run: ./apply-templates.sh
- name: Check Git Status
run: |
status="$(git status --short)"
[ -z "$status" ]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.jq-template.awk
13 changes: 11 additions & 2 deletions 10/alpine/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 13 additions & 14 deletions 12/Dockerfile → 10/buster/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
23 changes: 11 additions & 12 deletions 10/Dockerfile → 10/stretch/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
14 changes: 11 additions & 3 deletions 11/alpine/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 517c64f

Please sign in to comment.