.
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Giles Bradshaw 2020-05-10 21:04:43 +01:00
parent ed15e8e58d
commit 14e2e4092d
2 changed files with 30 additions and 58 deletions

View File

@ -1,74 +1,39 @@
version: "3.7" version: "3.7"
services: services:
drone-server: gitea:
# drone server application
deploy: deploy:
placement: placement:
constraints: [node.labels.com.sigyl.git-stack == yes] constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1 replicas: 1
restart_policy: restart_policy:
condition: any condition: any
image: drone/drone:1.7.0 image: ${LOCAL_DOCKER_REGISTRY}gitea
volumes:
- drone:/var/lib/drone
- drone-data:/data
environment: environment:
- DRONE_LOGS_DEBUG=true - USER_UID=1000
- DRONE_LOGS_PRETTY=true - USER_GID=1000
- DRONE_GITEA_SERVER=${DRONE_GITEA_SERVER} - ROOT_URL=https://${GIT_DOMAIN}/git
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID} - SSH_DOMAIN=${GIT_DOMAIN}
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET} - GITEA_APP_NAME=${GITEA_APP_NAME}
- DRONE_SERVER_HOST=${DRONE_SERVER_HOST} # tunnel hostname - GIT_DOMAIN=${GIT_DOMAIN}
- DRONE_ADMIN=giles - GITEA_SERVER_LFS_JWT_SECRET=$GITEA_SERVER_LFS_JWT_SECRET
- DRONE_SERVER_PROTO=https # tunnel adds https on top - GITEA_SECURITY_SECRET_KEY=$GITEA_SECURITY_SECRET_KEY
- DRONE_SERVER_PORT=:8080 - GITEA_SECURITY_INTERNAL_TOKEN=$GITEA_SECURITY_INTERNAL_TOKEN
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET} - GITEA_OAUTH2_JWT_SECRET=$GITEA_OAUTH2_JWT_SECRET
- DRONE_USER_CREATE=username:giles,admin:true - GITEA_MAILER_HOST=$GITEA_MAILER_HOST
- DRONE_AGENTS_ENABLED=true - GITEA_MAILER_USER=$GITEA_MAILER_USER
- DRONE_CONVERT_PLUGIN_ENDPOINT=http://drone-starlark:3000 - GITEA_MAILER_FROM=$GITEA_MAILER_FROM
- DRONE_CONVERT_PLUGIN_SECRET=${DRONE_CONVERT_SECRET} - GITEA_MAILER_PASSWD=$GITEA_MAILER_PASSWD
volumes:
- gitea-app:/data
ports:
- 3000:3000
- 22:22
networks: networks:
- appnet - appnet
- externalnet - externalnet
drone-docker-runner:
# drone runner performs builds
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
image: drone/drone-runner-docker:1
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock gitea-app:
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone-server:8080
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_RUNNER_CAPACITY=8
- DRONE_RUNNER_NAME="docker-runner"
networks:
- appnet
drone-starlark:
# drone starlark server converts starlark to yaml
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
image: ${LOCAL_DOCKER_REGISTRY}drone-starlark
environment:
- DRONE_DEBUG=true
- DRONE_SECRET=${DRONE_CONVERT_SECRET}
- DRONE_STARLARK_REPO_PATHS=this:/repos
- SIGYL_STACK_NAME=$SIGYL_STACK_NAME
- SIGYL_STACK_ROOT=$SIGYL_STACK_ROOT
networks:
- appnet
volumes:
drone:
drone-data:
networks: networks:
appnet: appnet:

View File

@ -1,9 +1,16 @@
envsubst < /repos/stack/stack-name._star > /repos/stack/stack-name.star envsubst < /repos/stack/stack-name._star > /repos/stack/stack-name.star
envsubst < /repos/stack/stack-root._star > /repos/stack/stack-root.star envsubst < /repos/stack/stack-root._star > /repos/stack/stack-root.star
envsubst < /repos/proxy/stack-name._star > /repos/proxy/stack-name.star envsubst < /repos/proxy/stack-name._star > /repos/proxy/stack-name.star
envsubst < /repos/proxy/stack-root._star > /repos/proxy/stack-root.star envsubst < /repos/proxy/stack-root._star > /repos/proxy/stack-root.star
envsubst < /repos/drone/stack-name._star > /repos/drone/stack-name.star envsubst < /repos/drone/stack-name._star > /repos/drone/stack-name.star
envsubst < /repos/drone/stack-root._star > /repos/drone/stack-root.star envsubst < /repos/drone/stack-root._star > /repos/drone/stack-root.star
envsubst < /repos/ghost/stack-name._star > /repos/ghost/stack-name.star envsubst < /repos/ghost/stack-name._star > /repos/ghost/stack-name.star
envsubst < /repos/ghost/stack-root._star > /repos/ghost/stack-root.star envsubst < /repos/ghost/stack-root._star > /repos/ghost/stack-root.star
envsubst < /repos/gitea/stack-name._star > /repos/gitea/stack-name.star
envsubst < /repos/gitea/stack-root._star > /repos/gitea/stack-root.star
/bin/drone-convert-starlark /bin/drone-convert-starlark