fix: missing secrets

This commit is contained in:
Giles Bradshaw 2020-10-23 17:23:02 +01:00
parent f01185276f
commit 80f11d1968
3 changed files with 22 additions and 1 deletions

View File

@ -185,6 +185,8 @@ steps:
- drone_repo_namespace - drone_repo_namespace
- scheme - scheme
- domain - domain
- registry_domain
- registry_port
- drone_gitea_client_id - drone_gitea_client_id
- drone_gitea_server - drone_gitea_server
- drone_server_host - drone_server_host
@ -194,10 +196,13 @@ steps:
- drone_gitea_client_secret - drone_gitea_client_secret
- drone_rpc_secret - drone_rpc_secret
- ssh_key - ssh_key
- registry_password
script: script:
- rm -f env-drone - rm -f env-drone
- "echo \"export SCHEME='$${SCHEME}'\" >> env-drone # \"scheme\"" - "echo \"export SCHEME='$${SCHEME}'\" >> env-drone # \"scheme\""
- "echo \"export DOMAIN='$${DOMAIN}'\" >> env-drone # \"domain\"" - "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_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_GITEA_SERVER='$${DRONE_GITEA_SERVER}'\" >> env-drone # \"drone-gitea-server\""
- "echo \"export DRONE_SERVER_HOST='$${DRONE_SERVER_HOST}'\" >> env-drone # \"drone-server-host\"" - "echo \"export DRONE_SERVER_HOST='$${DRONE_SERVER_HOST}'\" >> env-drone # \"drone-server-host\""
@ -207,6 +212,7 @@ steps:
- "echo \"export DRONE_GITEA_CLIENT_SECRET='$${DRONE_GITEA_CLIENT_SECRET}'\" >> env-drone # \"drone-gitea-client-secret\"" - "echo \"export DRONE_GITEA_CLIENT_SECRET='$${DRONE_GITEA_CLIENT_SECRET}'\" >> env-drone # \"drone-gitea-client-secret\""
- "echo \"export DRONE_RPC_SECRET='$${DRONE_RPC_SECRET}'\" >> env-drone # \"drone-rpc-secret\"" - "echo \"export DRONE_RPC_SECRET='$${DRONE_RPC_SECRET}'\" >> env-drone # \"drone-rpc-secret\""
- "echo \"export SSH_KEY='$${SSH_KEY}'\" >> env-drone # \"ssh-key\"" - "echo \"export SSH_KEY='$${SSH_KEY}'\" >> env-drone # \"ssh-key\""
- "echo \"export REGISTRY_PASSWORD='$${REGISTRY_PASSWORD}'\" >> env-drone # \"registry-password\""
environment: environment:
DOMAIN: DOMAIN:
from_secret: domain from_secret: domain
@ -220,6 +226,12 @@ steps:
from_secret: drone-rpc-secret from_secret: drone-rpc-secret
DRONE_SERVER_HOST: DRONE_SERVER_HOST:
from_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: SCHEME:
from_secret: scheme from_secret: scheme
SSH_HOST: SSH_HOST:
@ -317,6 +329,8 @@ steps:
- drone_repo_namespace - drone_repo_namespace
- scheme - scheme
- domain - domain
- registry_domain
- registry_port
- drone_gitea_client_id - drone_gitea_client_id
- drone_gitea_server - drone_gitea_server
- drone_server_host - drone_server_host
@ -326,6 +340,7 @@ steps:
- drone_gitea_client_secret - drone_gitea_client_secret
- drone_rpc_secret - drone_rpc_secret
- ssh_key - ssh_key
- registry_password
- registry_domain - registry_domain
- registry_port - registry_port
- registry_password - registry_password
@ -334,8 +349,11 @@ steps:
- export DRONE_GITEA_CLIENT_SECRET=$${DRONE_GITEA_CLIENT_SECRET} - export DRONE_GITEA_CLIENT_SECRET=$${DRONE_GITEA_CLIENT_SECRET}
- export DRONE_RPC_SECRET=$${DRONE_RPC_SECRET} - export DRONE_RPC_SECRET=$${DRONE_RPC_SECRET}
- export SSH_KEY=$${SSH_KEY} - export SSH_KEY=$${SSH_KEY}
- export REGISTRY_PASSWORD=$${REGISTRY_PASSWORD}
- export SCHEME=$${SCHEME} - export SCHEME=$${SCHEME}
- export DOMAIN=$${DOMAIN} - 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_CLIENT_ID=$${DRONE_GITEA_CLIENT_ID}
- export DRONE_GITEA_SERVER=$${DRONE_GITEA_SERVER} - export DRONE_GITEA_SERVER=$${DRONE_GITEA_SERVER}
- export DRONE_SERVER_HOST=$${DRONE_SERVER_HOST} - export DRONE_SERVER_HOST=$${DRONE_SERVER_HOST}

View File

@ -1,6 +1,8 @@
[ [
'scheme', 'scheme',
'domain', 'domain',
'registry-domain',
'registry-port',
'drone-gitea-client-id', 'drone-gitea-client-id',
'drone-gitea-server', 'drone-gitea-server',
'drone-server-host', 'drone-server-host',

View File

@ -1,5 +1,6 @@
[ [
'drone-gitea-client-secret', 'drone-gitea-client-secret',
'drone-rpc-secret', 'drone-rpc-secret',
'ssh-key' 'ssh-key',
'registry-password',
] ]