Compare commits
2 Commits
cc7aef5212
...
47bc5c3fce
Author | SHA1 | Date |
---|---|---|
Rob Watson | 47bc5c3fce | |
Rob Watson | 8e8ff2a889 |
|
@ -27,7 +27,9 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: data
|
name: data
|
||||||
command: ["git", "clone", "--depth", "1", "https://github.com/iv-org/invidious.git", "/data/repo"]
|
- mountPath: /scripts
|
||||||
|
name: scripts
|
||||||
|
command: ["/bin/sh", "/scripts/init.sh"]
|
||||||
- image: jbergknoff/postgresql-client:latest
|
- image: jbergknoff/postgresql-client:latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: init-invidious-db
|
name: init-invidious-db
|
||||||
|
@ -117,3 +119,6 @@ spec:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: invidious-config
|
name: invidious-config
|
||||||
|
- name: scripts
|
||||||
|
configMap:
|
||||||
|
name: invidious-scripts
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
if [ -d /data/repo ]; then
|
||||||
|
cd /data/repo
|
||||||
|
git pull
|
||||||
|
else
|
||||||
|
git clone --depth 1 https://github.com/iv-org/invidious.git /data/repo
|
||||||
|
fi
|
|
@ -108,6 +108,15 @@ configMapGenerator:
|
||||||
files:
|
files:
|
||||||
- init-directory-structure.sh=gitea-init-directory-structure.sh
|
- init-directory-structure.sh=gitea-init-directory-structure.sh
|
||||||
- setup.sh=gitea-setup.sh
|
- setup.sh=gitea-setup.sh
|
||||||
|
options:
|
||||||
|
labels:
|
||||||
|
app: gitea
|
||||||
|
- name: invidious-scripts
|
||||||
|
files:
|
||||||
|
- init.sh=invidious-init.sh
|
||||||
|
options:
|
||||||
|
labels:
|
||||||
|
app: invidious
|
||||||
|
|
||||||
secretGenerator:
|
secretGenerator:
|
||||||
- name: aws-do-external-dns-credentials
|
- name: aws-do-external-dns-credentials
|
||||||
|
|
Loading…
Reference in New Issue