mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d59aabb30c | ||
|
|
303c9704b3 | ||
|
|
bf6cf818c4 |
2
.github/workflows/publish-backup-tag.yml
vendored
2
.github/workflows/publish-backup-tag.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||
uses: docker/metadata-action@032a4b3bda1b716928481836ac5bfe36e1feaad6
|
||||
with:
|
||||
images: ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
|
||||
2
.github/workflows/publish-tag.yml
vendored
2
.github/workflows/publish-tag.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||
uses: docker/metadata-action@032a4b3bda1b716928481836ac5bfe36e1feaad6
|
||||
with:
|
||||
images: ${{ env.DOCKER_REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
|
||||
5
.github/workflows/renovate.yml
vendored
5
.github/workflows/renovate.yml
vendored
@@ -2,7 +2,7 @@ name: Renovate
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 */6 * * *'
|
||||
- cron: "0 */6 * * *"
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -12,4 +12,5 @@ jobs:
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v40.2.2
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
configurationFile: ./renovate.json5
|
||||
|
||||
12
charts/apps/install.sh
Executable file
12
charts/apps/install.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
set -euo pipefail
|
||||
|
||||
find . -name "values.yaml" -type f -print0 | while IFS= read -r -d '' values_file; do
|
||||
location=$(dirname "$values_file")
|
||||
name=$(basename "$location")
|
||||
name=$(echo "$name" | tr '[:upper:]' '[:lower:]' | tr -s '[:punct:][:space:]' '-' | sed -e 's/^-*//' -e 's/-*$//')
|
||||
|
||||
echo "✅ Chart found in: $location"
|
||||
echo " - Generated release name: $name"
|
||||
HELM_COMMAND="helm install --namespace prod \"$name\" \"$location\""
|
||||
helm upgrade -i --namespace prod "$name" "$location"
|
||||
done
|
||||
@@ -1,11 +1,11 @@
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: '{{ .Release.Name }}-config'
|
||||
name: "{{ .Release.Name }}-config"
|
||||
spec:
|
||||
accessModes:
|
||||
- 'ReadWriteOnce'
|
||||
- "ReadWriteOnce"
|
||||
resources:
|
||||
requests:
|
||||
storage: '1Gi'
|
||||
storageClassName: '{{ .Values.environment }}'
|
||||
storage: "1Gi"
|
||||
storageClassName: "{{ .Values.globals.environment }}"
|
||||
|
||||
Reference in New Issue
Block a user