Skip to content

Commit 94744aa

Browse files
Drift from template
1 parent 2912239 commit 94744aa

File tree

17 files changed

+212
-25
lines changed

17 files changed

+212
-25
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: "Build Docs"
2+
description: "build jekyll docs"
3+
inputs:
4+
version:
5+
description: "Version number"
6+
required: true
7+
runs:
8+
using: "composite"
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 18
15+
- name: Npm cli install
16+
working-directory: ./docs
17+
run: npm ci
18+
shell: bash
19+
- name: Setup Ruby
20+
uses: ruby/[email protected]
21+
with:
22+
ruby-version: "3.2" # Not needed with a .ruby-version file
23+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
24+
cache-version: 0 # Increment this number if you need to re-download cached gems
25+
working-directory: "./docs"
26+
- name: Setup Pages
27+
id: pages
28+
uses: actions/configure-pages@v5
29+
- name: Build with Jekyll
30+
working-directory: ./docs
31+
# Outputs to the './_site' directory by default
32+
shell: bash
33+
run: make build BASE_URL="${{ steps.pages.outputs.base_path }}" VERSION="${{ inputs.version }}"
34+
#run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
35+
env:
36+
JEKYLL_ENV: production
37+
- name: Upload artifact
38+
# Automatically uploads an artifact from the './_site' directory by default
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: "docs/_site/"
42+
name: jekyll-docs-${{ inputs.version }}

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pre-commit 3.6.0
44
terraform 1.9.2
55
terraform-docs 0.19.0
66
vale 3.6.0
7+
python 3.13.2
78
tfsec 1.28.10
89
nodejs 20.18.2
910
jq 1.6

infrastructure/terraform/bin/terraform.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,8 +793,8 @@ case "${action}" in
793793
;;
794794
*)
795795
echo -e "Generic action case invoked. Only the additional arguments will be passed to terraform, you break it you fix it:";
796-
echo -e "\tterraform ${action} ${extra_args}";
797-
terraform "${action}" ${extra_args} \
796+
echo -e "\tterraform ${action} ${extra_args} | tee terraform_output";
797+
terraform "${action}" ${extra_args} | tee terraform_output \
798798
|| error_and_die "Terraform ${action} failed.";
799799
;;
800800
esac;

scripts/config/.repository-template-sync-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Files and folders to ignore when syncing nhs-notify-repository-template back in to this repository
2+
/Makefile
3+
scripts/**/examples/
24
.github/workflows/
35
nhs-notify-repository-template/
46
.github/CODEOWNERS

scripts/config/.repository-template-sync-merge

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ scripts/config/.repository-template-sync-ignore
33
scripts/config/.repository-template-sync-merge
44
.tool-versions
55
.gitignore
6+
scripts/config/vale/vale.ini
67
scripts/config/vale/styles/config/vocabularies/words/accept.txt
78
scripts/config/vale/styles/config/vocabularies/words/reject.txt

scripts/config/pre-commit.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ repos:
99
- id: check-symlinks
1010
- id: detect-private-key
1111
- id: end-of-file-fixer
12-
exclude: .+\.cs
1312
- id: forbid-new-submodules
1413
- id: mixed-line-ending
1514
- id: pretty-format-json

scripts/config/vale/styles/config/vocabularies/words/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ drawio
99
endcapture
1010
endfor
1111
endraw
12+
Git[Hh]ub
1213
GitHub
1314
Gitleaks
1415
Grype
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
rm -Rf ~/.asdf
4+
git clone https://github.com/asdf-vm/asdf.git ~/.asdf;
5+
chmod +x ~/.asdf/asdf.sh;
6+
echo '. $HOME/.asdf/asdf.sh' >> ~/.zshrc
7+
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.zshrc
8+
9+
source ~/.zshrc
10+
11+
echo 'asdf setup complete'
12+
13+
make config
14+
15+
jekyll --version && cd docs && bundle install
16+
17+
echo 'jekyll setup complete'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
source ~/.zshrc
3+
make config
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# python, SEE: https://hub.docker.com/_/python/tags
2+
# docker/python 3.11.4-alpine3.18@sha256:0135ae6442d1269379860b361760ad2cf6ab7c403d21935a8015b48d5bf78a86

0 commit comments

Comments
 (0)