Skip to content

Commit

Permalink
Merge branch 'main' into leiden
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Feb 28, 2024
2 parents 40a2e54 + 380b2c9 commit 1c5c430
Show file tree
Hide file tree
Showing 29 changed files with 2,054 additions and 13,013 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ VERSION=
NEXT_PUBLIC_API_URL=https://api.leiden-hp.commonground.nu/api
NEXT_PUBLIC_MATOMO_URL=https://stats.utrecht.nl/analytics/
NEXT_PUBLIC_MATOMO_SITE_ID=5
NEXT_PUBLIC_NL_DESIGN_THEME_CLASSNAME=utrecht-theme
NEXT_PUBLIC_ORGANISATION_NAME=Gemeente Utrecht
NEXT_PUBLIC_FAV_ICON=https://www.utrecht.nl/favicon.ico
3 changes: 3 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NEXT_PUBLIC_NL_DESIGN_THEME_CLASSNAME=leiden-theme
NEXT_PUBLIC_ORGANISATION_NAME=Gemeente Leiden
NEXT_PUBLIC_FAV_ICON=https://gemeente.leiden.nl/typo3conf/ext/leiden_template/Resources/Public/Images/favicon/favicon-96x96.png
3 changes: 3 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NEXT_PUBLIC_NL_DESIGN_THEME_CLASSNAME=
NEXT_PUBLIC_ORGANISATION_NAME=
NEXT_PUBLIC_FAV_ICON=
52 changes: 52 additions & 0 deletions .github/workflows/huwelijksplanner-page-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy the Huwelijksplanner Page to GitHub Pages

env: # Change these to your preferences any image url can also be a base encoded image
GITHUB_PAGES_BRANCH: gh-pages

NL_DESIGN_THEME_CLASSNAME: leiden-theme
ORGANISATION_NAME: Gemeente Leiden
FAV_ICON: https://gemeente.leiden.nl/typo3conf/ext/leiden_template/Resources/Public/Images/favicon/favicon-96x96.png

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Get the Huwelijksplanner Code
uses: actions/checkout@v2
with:
repository: ConductionNL/utrecht-huwelijksplanner
ref: main

# With special thanxs to https://github.com/SpicyPizza/create-envfile
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_NEXT_PUBLIC_NL_DESIGN_THEME_CLASSNAME: ${{ env.NL_DESIGN_THEME_CLASSNAME }}
envkey_NEXT_PUBLIC_ORGANISATION_NAME: ${{ env.ORGANISATION_NAME }}
envkey_NEXT_PUBLIC_FAV_ICON: ${{ env.FAV_ICON }}
file_name: .env.production
fail_on_empty: true
sort_keys: false

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install dependencies
run: npm install

- name: Build application
run: npm run build

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: ${{ env.GITHUB_PAGES_BRANCH }}
folder: .next
6 changes: 3 additions & 3 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"rules": {
"order/order": ["custom-properties", "declarations"],
"order/properties-alphabetical-order": true,
"custom-property-pattern": "^_?(amsterdam|denhaag|example|todo|utrecht)-?[a-z0-9-]+$",
"selector-class-pattern": "^(amsterdam|denhaag|example|todo|utrecht)-[a-z0-9_-]+$",
"keyframes-name-pattern": "^(amsterdam|denhaag|example|todo|utrecht)-[a-z0-9-]+$",
"custom-property-pattern": "^_?(amsterdam|denhaag|example|todo|utrecht|conduction|leiden)-?[a-z0-9-]+$",
"selector-class-pattern": "^(amsterdam|denhaag|example|todo|utrecht|conduction|leiden)-[a-z0-9_-]+$",
"keyframes-name-pattern": "^(amsterdam|denhaag|example|todo|utrecht|conduction|leiden)-[a-z0-9-]+$",
"at-rule-no-unknown": null,
"block-no-empty": [true],
"color-no-invalid-hex": [true],
Expand Down
2 changes: 1 addition & 1 deletion helm/huwelijksplanner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ version: 0.0.1
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 1.0.0

dependencies: []
dependencies: []
8 changes: 5 additions & 3 deletions helm/huwelijksplanner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ securityContext:
{}
# capabilities:
# drop:
# - ALL
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
Expand All @@ -69,7 +69,8 @@ ingress:
path: ""
pathType: ImplementationSpecific
className: nginx
annotations: {}
annotations:
{}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
Expand All @@ -78,7 +79,8 @@ ingress:
# hosts:
# - chart-example.local

resources: {}
resources:
{}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
Expand Down
Loading

0 comments on commit 1c5c430

Please sign in to comment.