diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 09:08:40 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-10 09:08:40 -0400 |
commit | 1acb82121be8d8be4d423aeb13e11597e5403ecf (patch) | |
tree | 8aa536b01fe898ba79434a5167efdc1d2a3c122e /src/main.c | |
parent | 8c5bf74101b05ed36941c772f34681a3b8e42e65 (diff) | |
download | stasis-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |