feat: update Forgejo deployment URL and add installation check in startup script
This commit is contained in:
parent
8faa97a8bb
commit
bb4d0cc701
3 changed files with 9 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ spec:
|
||||||
- name: FORGEJO__repository__ENABLE_PUSH_CREATE_USER
|
- name: FORGEJO__repository__ENABLE_PUSH_CREATE_USER
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: FORGEJO__server__ROOT_URL
|
- name: FORGEJO__server__ROOT_URL
|
||||||
value: "https://frg.headshed.dev/"
|
value: "https://frgdr.headshed.dev/"
|
||||||
- name: FORGEJO__repository__DEFAULT_BRANCH
|
- name: FORGEJO__repository__DEFAULT_BRANCH
|
||||||
value: "main"
|
value: "main"
|
||||||
- name: FORGEJO__server__LFS_START_SERVER
|
- name: FORGEJO__server__LFS_START_SERVER
|
||||||
|
|
|
||||||
|
|
@ -100,3 +100,11 @@ if [[ ! -d "$INFCTL_INSTALL_DIR" ]]; then
|
||||||
chown -R user:user "$INFCTL_INSTALL_DIR"
|
chown -R user:user "$INFCTL_INSTALL_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check to see if INSTALL_FORGEJO is set to "true"
|
||||||
|
if [[ "$INSTALL_FORGEJO" == "true" ]]; then
|
||||||
|
# install forgejo using infctl
|
||||||
|
# ....
|
||||||
|
LOG_FORMAT=none infctl -f "${INFCTL_INSTALL_DIR}/infctl-cli/gcloud/tf/scripts/install-forgejo-pipeline.json"
|
||||||
|
touch /etc/forgejo_was_installed
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue