From 1e6213facdb2acab6a9b5f8ffa9328781876ab6a Mon Sep 17 00:00:00 2001 From: Giles Bradshaw Date: Fri, 23 Oct 2020 12:12:47 +0100 Subject: [PATCH] . --- .drone/drone-home.yml | 12 ++++++++++++ .drone/lib/public-secrets.libsonnet | 2 ++ 2 files changed, 14 insertions(+) diff --git a/.drone/drone-home.yml b/.drone/drone-home.yml index 37e6e89..a88a326 100644 --- a/.drone/drone-home.yml +++ b/.drone/drone-home.yml @@ -185,6 +185,8 @@ steps: - drone_repo_namespace - scheme - domain + - registry_domain + - registry_port - drone_gitea_client_id - drone_gitea_server - drone_server_host @@ -199,6 +201,8 @@ steps: - rm -f env-drone - "echo \"export SCHEME='$${SCHEME}'\" >> env-drone # \"scheme\"" - "echo \"export DOMAIN='$${DOMAIN}'\" >> env-drone # \"domain\"" + - "echo \"export REGISTRY_DOMAIN='$${REGISTRY_DOMAIN}'\" >> env-drone # \"registry-domain\"" + - "echo \"export REGISTRY_PORT='$${REGISTRY_PORT}'\" >> env-drone # \"registry-port\"" - "echo \"export DRONE_GITEA_CLIENT_ID='$${DRONE_GITEA_CLIENT_ID}'\" >> env-drone # \"drone-gitea-client-id\"" - "echo \"export DRONE_GITEA_SERVER='$${DRONE_GITEA_SERVER}'\" >> env-drone # \"drone-gitea-server\"" - "echo \"export DRONE_SERVER_HOST='$${DRONE_SERVER_HOST}'\" >> env-drone # \"drone-server-host\"" @@ -222,8 +226,12 @@ steps: from_secret: drone-rpc-secret DRONE_SERVER_HOST: from_secret: drone-server-host + REGISTRY_DOMAIN: + from_secret: registry-domain REGISTRY_PASSWORD: from_secret: registry-password + REGISTRY_PORT: + from_secret: registry-port SCHEME: from_secret: scheme SSH_HOST: @@ -321,6 +329,8 @@ steps: - drone_repo_namespace - scheme - domain + - registry_domain + - registry_port - drone_gitea_client_id - drone_gitea_server - drone_server_host @@ -342,6 +352,8 @@ steps: - export REGISTRY_PASSWORD=$${REGISTRY_PASSWORD} - export SCHEME=$${SCHEME} - export DOMAIN=$${DOMAIN} + - export REGISTRY_DOMAIN=$${REGISTRY_DOMAIN} + - export REGISTRY_PORT=$${REGISTRY_PORT} - export DRONE_GITEA_CLIENT_ID=$${DRONE_GITEA_CLIENT_ID} - export DRONE_GITEA_SERVER=$${DRONE_GITEA_SERVER} - export DRONE_SERVER_HOST=$${DRONE_SERVER_HOST} diff --git a/.drone/lib/public-secrets.libsonnet b/.drone/lib/public-secrets.libsonnet index 12b2420..d3c9452 100644 --- a/.drone/lib/public-secrets.libsonnet +++ b/.drone/lib/public-secrets.libsonnet @@ -1,6 +1,8 @@ [ 'scheme', 'domain', + 'registry-domain', + 'registry-port', 'drone-gitea-client-id', 'drone-gitea-server', 'drone-server-host',