aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-04-10 09:08:40 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-04-10 09:08:40 -0400
commit1acb82121be8d8be4d423aeb13e11597e5403ecf (patch)
tree8aa536b01fe898ba79434a5167efdc1d2a3c122e /src/main.c
parent8c5bf74101b05ed36941c772f34681a3b8e42e65 (diff)
downloadstasis-1acb82121be8d8be4d423aeb13e11597e5403ecf.tar.gz
Stop duplicating the jfrog authentication context for each upload context.
* We only need one * RAM isn't peppered with auth data * The artifactory URL has been consolidated and exposed as a template variable: deploy.jfrog.url
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 81cc1a4..5da1a97 100644
--- a/src/main.c
+++ b/src/main.c
@@ -132,6 +132,7 @@ void globals_free() {
guard_strlist_free(&globals.pip_packages);
guard_free(globals.jfrog.arch);
guard_free(globals.jfrog.os);
+ guard_free(globals.jfrog.url);
guard_free(globals.jfrog.repo);
guard_free(globals.jfrog.version);
guard_free(globals.jfrog.cli_major_ver);
@@ -256,6 +257,7 @@ int main(int argc, char *argv[]) {
tpl_register("conda.installer_arch", &ctx.conda.installer_arch);
tpl_register("conda.installer_platform", &ctx.conda.installer_platform);
tpl_register("deploy.jfrog.repo", &globals.jfrog.repo);
+ tpl_register("deploy.jfrog.url", &globals.jfrog.url);
tpl_register("deploy.docker.registry", &ctx.deploy.docker.registry);
tpl_register("workaround.tox_posargs", &globals.workaround.tox_posargs);