starlark
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Giles Bradshaw 2020-04-23 20:54:37 +01:00
parent 96cf4bb787
commit 4e9ed54b42
2 changed files with 19 additions and 0 deletions

View File

@ -225,6 +225,8 @@ steps:
from_secret: drone-gitea-client-id from_secret: drone-gitea-client-id
DRONE_GITEA_CLIENT_SECRET: DRONE_GITEA_CLIENT_SECRET:
from_secret: drone-gitea-client-secret from_secret: drone-gitea-client-secret
DRONE_CONVERT_SECRET:
from_secret: drone-convert-secret
LOCAL_DOCKER_REGISTRY: LOCAL_DOCKER_REGISTRY:
from_secret: local-docker-registry from_secret: local-docker-registry
SSH_USER: SSH_USER:
@ -242,6 +244,7 @@ steps:
- drone_rpc_secret - drone_rpc_secret
- drone_gitea_client_id - drone_gitea_client_id
- drone_gitea_client_secret - drone_gitea_client_secret
- drone_convert_secret
- ssh_user - ssh_user
- local_docker_registry - local_docker_registry
- certbot_email - certbot_email
@ -262,6 +265,7 @@ steps:
- export DRONE_RPC_SECRET=$DRONE_RPC_SECRET - export DRONE_RPC_SECRET=$DRONE_RPC_SECRET
- export DRONE_GITEA_CLIENT_ID=$DRONE_GITEA_CLIENT_ID - export DRONE_GITEA_CLIENT_ID=$DRONE_GITEA_CLIENT_ID
- export DRONE_GITEA_CLIENT_SECRET=$DRONE_GITEA_CLIENT_SECRET - export DRONE_GITEA_CLIENT_SECRET=$DRONE_GITEA_CLIENT_SECRET
- export DRONE_CONVERT_SECRET=$DRONE_CONVERT_SECRET
- export SSH_USER=$SSH_USER - export SSH_USER=$SSH_USER
- export CERTBOT_EMAIL=$CERTBOT_EMAIL - export CERTBOT_EMAIL=$CERTBOT_EMAIL
- export GIT_DOMAIN=$GIT_DOMAIN - export GIT_DOMAIN=$GIT_DOMAIN

View File

@ -85,6 +85,8 @@ services:
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET} - DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_USER_CREATE=username:giles,admin:true - DRONE_USER_CREATE=username:giles,admin:true
- DRONE_AGENTS_ENABLED=true - DRONE_AGENTS_ENABLED=true
- DRONE_CONVERT_PLUGIN_ENDPOINT=http://drone-starlark:3000
- DRONE_CONVERT_PLUGIN_SECRET=${DRONE_CONVERT_SECRET}
#- DRONE_ENV_PLUGIN_ENDPOINT=http://git.local-domain:8888 #- DRONE_ENV_PLUGIN_ENDPOINT=http://git.local-domain:8888
#- DRONE_ENV_PLUGIN_TOKEN=anything #- DRONE_ENV_PLUGIN_TOKEN=anything
networks: networks:
@ -109,6 +111,19 @@ services:
- DRONE_RUNNER_NAME="docker-runner" - DRONE_RUNNER_NAME="docker-runner"
#- DRONE_ENV_PLUGIN_ENDPOINT=http://git.local-domain:8888 #- DRONE_ENV_PLUGIN_ENDPOINT=http://git.local-domain:8888
#- DRONE_ENV_PLUGIN_TOKEN=anything #- DRONE_ENV_PLUGIN_TOKEN=anything
drone-starlark:
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
image: drone/drone-convert-starlark
environment:
- DRONE_DEBUG=true
- DRONE_SECRET=${DRONE_CONVERT_SECRET}
networks:
- appnet
registry: registry:
deploy: deploy: