Last active
January 6, 2023 16:07
-
-
Save jniltinho/b7d004ec1916be677b9eefbe60eb4efa to your computer and use it in GitHub Desktop.
Install Drone Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Install Drone Server | |
# https://docs.drone.io/server/provider/github/ | |
# https://docs.drone.io/runner/exec/installation/linux/ | |
# https://samuelsson.dev/how-to-install-and-configure-drone-ci-on-a-self-hosted-server/ | |
# https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/ | |
# https://www.digitalocean.com/community/tutorials/how-to-use-certbot-standalone-mode-to-retrieve-let-s-encrypt-ssl-certificates-on-ubuntu-22-04 | |
COMPOSE=https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 | |
apt-get update && apt-get dist-upgrade | |
apt-get install -y docker.io nginx unzip curl net-tools certbot | |
systemctl start docker && systemctl enable docker | |
curl -skL -o /usr/local/bin/docker-compose ${COMPOSE} && chmod +x /usr/local/bin/docker-compose | |
## Create SSL, stop nginx | |
systemctl stop nginx | |
certbot certonly --standalone -d drone.linuxpro.com.br | |
systemctl start nginx | |
mkdir -p /opt/drone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment