Clean up old versions.
This commit is contained in:
parent
13ed69b784
commit
07596f4351
8 changed files with 0 additions and 1678 deletions
|
@ -1,37 +0,0 @@
|
|||
# Drone configuration file. See https://docs.drone.io/server/reference/ for a
|
||||
# complete list of configuration options.
|
||||
|
||||
# Required string value provides your Gitea oauth Client ID.
|
||||
DRONE_GITEA_CLIENT_ID="your-id-goes-here"
|
||||
|
||||
# Required string value provides your Gitea oauth Client Secret.
|
||||
DRONE_GITEA_CLIENT_SECRET="your-secret-goes-here"
|
||||
|
||||
# Required string value provides your Gitea server address. For example
|
||||
# https://gitea.company.com
|
||||
DRONE_GITEA_SERVER="https://gitea-server.example.com/"
|
||||
|
||||
# Required string value provides the shared secret generated in the previous
|
||||
# step. This is used to authenticate the rpc connection between the server and
|
||||
# runners. The server and runner must be provided the same secret value.
|
||||
DRONE_RPC_SECRET="your-rpc-secret-goes-here"
|
||||
|
||||
# Required string value provides your external hostname or IP address. If using
|
||||
# an IP address you may include the port. For example drone.company.com.
|
||||
DRONE_SERVER_HOST="drone-ci.example.com"
|
||||
|
||||
# Required string value provides your external protocol scheme. This value
|
||||
# should be set to http or https. This field defaults to https if you configure
|
||||
# ssl or acme.
|
||||
DRONE_SERVER_PROTO="https"
|
||||
|
||||
# Optional boolean value configures Drone to authenticate when cloning public
|
||||
# repositories.
|
||||
# DRONE_GIT_ALWAYS_AUTH=true
|
||||
|
||||
# Required string value configures ports to publish for docker: space-separated
|
||||
# list of <hostport>:<containerport> tuples.
|
||||
DOCKER_PUBLISH="8080:80 8443:443"
|
||||
|
||||
# Optional string value of extra args passed verbatim to the docker command.
|
||||
DOCKER_DRONE_EXTRA_ARGS=""
|
|
@ -1,34 +0,0 @@
|
|||
[Unit]
|
||||
Description=drone.io build server
|
||||
Documentation=https://docs.drone.io/
|
||||
|
||||
AssertPathIsDirectory=/var/lib/drone
|
||||
AssertPathIsReadWrite=/var/lib/drone
|
||||
|
||||
After=docker.service
|
||||
After=mysqld.target
|
||||
After=network.target
|
||||
After=postgresql-9.3.service
|
||||
After=postgresql-9.4.service
|
||||
After=postgresql-9.5.service
|
||||
After=postgresql-9.6.service
|
||||
After=postgresql-10.service
|
||||
After=postgresql-11.service
|
||||
After=postgresql-12.service
|
||||
Requires=docker.service
|
||||
Requires=network.target
|
||||
|
||||
[Service]
|
||||
User=drone
|
||||
Group=drone
|
||||
|
||||
Environment="DOCKER_DRONE_CONFIG_FILE=/etc/drone/app.ini"
|
||||
|
||||
ExecStart=drone.sh
|
||||
ExecStop=docker container stop drone
|
||||
ExecStopPost=docker container rm drone
|
||||
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,26 +0,0 @@
|
|||
[Unit]
|
||||
Description=drone.io build server
|
||||
Documentation=https://docs.drone.io/
|
||||
|
||||
After=mysqld.target
|
||||
After=network.target
|
||||
After=postgresql-9.3.service
|
||||
After=postgresql-9.4.service
|
||||
After=postgresql-9.5.service
|
||||
After=postgresql-9.6.service
|
||||
After=postgresql-10.service
|
||||
After=postgresql-11.service
|
||||
After=postgresql-12.service
|
||||
#Requires=docker.service
|
||||
Requires=network.target
|
||||
|
||||
[Service]
|
||||
User=drone
|
||||
Group=drone
|
||||
|
||||
ExecStart=/usr/sbin/drone-server -env-file /etc/drone/app.ini
|
||||
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,29 +0,0 @@
|
|||
#!/bin/sh
|
||||
# $DRONE_CONFIG_FILE contains path to the config file
|
||||
|
||||
if [[ -z "${DOCKER_DRONE_CONFIG_FILE}" ]] ; then
|
||||
echo "DOCKER_DRONE_CONFIG_FILE not set!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
. "${DOCKER_DRONE_CONFIG_FILE}"
|
||||
|
||||
docker_args=""
|
||||
|
||||
for var in "${!DRONE_@}" ; do
|
||||
docker_args="${docker_args} --env=${var}=${!var}"
|
||||
done
|
||||
|
||||
for p in ${DOCKER_PUBLISH} ; do
|
||||
docker_args="${docker_args} --publish=${p}"
|
||||
done
|
||||
|
||||
docker_args="${docker_args} ${DOCKER_DRONE_EXTRA_ARGS}"
|
||||
|
||||
docker run \
|
||||
--volume=/var/lib/drone:/data \
|
||||
${docker_args} \
|
||||
--restart=always \
|
||||
--detach=false \
|
||||
--name=drone \
|
||||
drone/drone:<VERSION>
|
Loading…
Add table
Add a link
Reference in a new issue