aboutsummaryrefslogtreecommitdiff
path: root/src/globals.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-07-02 11:05:54 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-07-02 11:06:30 -0400
commit2ca6d9d944a05ff9c31d133ca44a0cc9bc892030 (patch)
tree76d4d82a5bd3890cc12960ada94e0218d3a3b519 /src/globals.c
parent48fbcc4e2a47319e8f53e0dc5104dcfcfe11cc2b (diff)
downloadstasis-2ca6d9d944a05ff9c31d133ca44a0cc9bc892030.tar.gz
Update README to mention template function availability
* Add EnvCtl structure * Add runtime checks to avoid running all the way to the end only to be met with a configuration error. * Rename GITHUB to GH
Diffstat (limited to 'src/globals.c')
-rw-r--r--src/globals.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/globals.c b/src/globals.c
index 297598f..18a32b5 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -36,6 +36,22 @@ struct STASIS_GLOBAL globals = {
.enable_docker = true,
.enable_artifactory = true,
.enable_testing = true,
+ .envctl = {
+ {.flags = STASIS_ENVCTL_PASSTHRU, .name = {"TMPDIR", NULL}},
+ {.flags = STASIS_ENVCTL_PASSTHRU, .name = {"STASIS_ROOT", NULL}},
+ {.flags = STASIS_ENVCTL_PASSTHRU, .name = {"STASIS_SYSCONFDIR", NULL}},
+ {.flags = STASIS_ENVCTL_PASSTHRU, .name = {"STASIS_CPU_COUNT", "CPU_COUNT", NULL}},
+ {.flags = STASIS_ENVCTL_REQUIRED | STASIS_ENVCTL_REDACT, .name={"STASIS_GH_TOKEN", "GITHUB_TOKEN", NULL}},
+ {.flags = STASIS_ENVCTL_REDACT, .name = {"STASIS_JF_ACCESS_TOKEN", NULL}},
+ {.flags = STASIS_ENVCTL_PASSTHRU, .name = {"STASIS_JF_USER", NULL}},
+ {.flags = STASIS_ENVCTL_REDACT, .name = {"STASIS_JF_PASSWORD", NULL}},
+ {.flags = STASIS_ENVCTL_REDACT, .name = {"STASIS_JF_SSH_KEY_PATH", NULL}},
+ {.flags = STASIS_ENVCTL_REDACT, .name = {"STASIS_JF_SSH_PASSPHRASE", NULL}},
+ {.flags = STASIS_ENVCTL_REDACT, .name = {"STASIS_JF_CLIENT_CERT_CERT_PATH", NULL}},
+ {.flags = STASIS_ENVCTL_REDACT, .name = {"STASIS_JF_CLIENT_CERT_KEY_PATH", NULL}},
+ {.flags = STASIS_ENVCTL_REQUIRED, .name = {"STASIS_JF_REPO", NULL}},
+ {.flags = 0, .name = {NULL}},
+ }
};
void globals_free() {