mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-13 01:36:23 +00:00
Update build script
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
@@ -11,7 +11,7 @@ jobs:
|
|||||||
id: get-app-token
|
id: get-app-token
|
||||||
uses: tibdex/github-app-token@v1
|
uses: tibdex/github-app-token@v1
|
||||||
with:
|
with:
|
||||||
app_id: 242301
|
app_id: ${{ secrets.PR_TASK_COMPLETED_CHECKER_APP_ID }}
|
||||||
private_key: ${{ secrets.PR_TASK_COMPLETED_CHECKER_APP_PRIVATE_KEY }}
|
private_key: ${{ secrets.PR_TASK_COMPLETED_CHECKER_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: Shopify/task-list-checker@main
|
- uses: Shopify/task-list-checker@main
|
||||||
|
|||||||
@@ -428,32 +428,31 @@ Then work your way through the values you pasted, and change any which are speci
|
|||||||
|
|
||||||
### HelmRelease
|
### HelmRelease
|
||||||
|
|
||||||
Lastly, having set the scene above, we define the HelmRelease which will actually deploy the sealed-secrets controller into the cluster, with the config we defined above. I save this in my flux repo as `sealed-secrets/helmrelease-sealed-secrets.yaml`:
|
Lastly, having set the scene above, we define the HelmRelease which will actually deploy the sealed-secrets controller into the cluster, with the config we defined above. I save this in my flux repo:
|
||||||
|
|
||||||
??? example "Example HelmRelease (click to expand)"
|
```yaml title="/sealed-secrets/helmrelease-sealed-secrets.yaml"
|
||||||
```yaml
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
kind: HelmRelease
|
||||||
kind: HelmRelease
|
metadata:
|
||||||
metadata:
|
name: sealed-secrets
|
||||||
name: sealed-secrets
|
namespace: sealed-secrets
|
||||||
namespace: sealed-secrets
|
spec:
|
||||||
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart:
|
chart: sealed-secrets
|
||||||
spec:
|
version: 1.x
|
||||||
chart: sealed-secrets
|
sourceRef:
|
||||||
version: 1.x
|
kind: HelmRepository
|
||||||
sourceRef:
|
name: sealed-secrets
|
||||||
kind: HelmRepository
|
namespace: flux-system
|
||||||
name: sealed-secrets
|
interval: 15m
|
||||||
namespace: flux-system
|
timeout: 5m
|
||||||
interval: 15m
|
releaseName: sealed-secrets
|
||||||
timeout: 5m
|
valuesFrom:
|
||||||
releaseName: sealed-secrets
|
- kind: ConfigMap
|
||||||
valuesFrom:
|
name: sealed-secrets-helm-chart-value-overrides
|
||||||
- kind: ConfigMap
|
valuesKey: values.yaml # This is the default, but best to be explicit for clarity
|
||||||
name: sealed-secrets-helm-chart-value-overrides
|
```
|
||||||
valuesKey: values.yaml # This is the default, but best to be explicit for clarity
|
|
||||||
```
|
|
||||||
|
|
||||||
--8<-- "kubernetes-why-not-config-in-helmrelease.md"
|
--8<-- "kubernetes-why-not-config-in-helmrelease.md"
|
||||||
|
|
||||||
|
|||||||
@@ -8,14 +8,14 @@
|
|||||||
# python3 scripts/build.py mkdocs.yml
|
# python3 scripts/build.py mkdocs.yml
|
||||||
|
|
||||||
# install mkdocs (or insiders version, if we're passed a GH_TOKEN var)
|
# install mkdocs (or insiders version, if we're passed a GH_TOKEN var)
|
||||||
if [ "$GH_TOKEN" -eq "" ]
|
if [ -z "$GH_TOKEN" ]
|
||||||
then
|
then
|
||||||
echo "No GH_TOKEN passed, doing a normal build.."
|
echo "No GH_TOKEN passed, doing a normal build.."
|
||||||
pip install mkdocs-material
|
pip install mkdocs-material
|
||||||
ENABLE_PDF_EXPORT=0 mkdocs build -f mkdocs.yml
|
ENABLE_PDF_EXPORT=0 mkdocs build -f mkdocs.yml
|
||||||
else
|
else
|
||||||
echo "GH_TOKEN passed, doing an insiders build.."
|
echo "GH_TOKEN passed, doing an insiders build.."
|
||||||
pip install -e mkdocs-material-insiders
|
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
||||||
ENABLE_PDF_EXPORT=0 mkdocs build -f mkdocs-insiders.yml
|
ENABLE_PDF_EXPORT=0 mkdocs build -f mkdocs-insiders.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user