9 Commits

Author SHA1 Message Date
3wc
a29b40e19c chore: publish 1.8.0+2.25.0 release
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
2025-02-19 12:08:47 -05:00
a5d153ff25 Update .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2025-01-08 10:09:12 -08:00
3wc
d6486491ff chore: publish 1.7.0+2.24.0 release
All checks were successful
continuous-integration/drone/push Build is passing
2024-10-02 13:27:08 -04:00
3wc
fe53a73a78 chore: publish 1.6.0+2.22.0 release
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-08 14:29:19 -03:00
5bbf1e37b4 formatting
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-17 15:58:12 -08:00
63d7346dc5 added some more docz
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-17 15:56:44 -08:00
4c0647677c updated readme a tiny bit, could use even more clarity
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-17 13:28:00 -08:00
3wc
a41129c1e9 chore: publish 1.5.0+2.20.0 release
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-28 14:21:25 +02:00
3wc
5cb5d6706d chore: publish 1.4.0+2.18.0 release
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-24 14:34:02 +01:00
3 changed files with 66 additions and 3 deletions

View File

@ -36,7 +36,7 @@ steps:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
- toolshed/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -24,5 +24,68 @@
5. `abra app deploy YOURAPPDOMAIN`
6. Open the configured domain in your browser to finish set-up
## Setup with Gitea
follow this guide: https://docs.drone.io/server/provider/gitea/
then you'll also need to setup drone-docker-runner (`abra app new drone-docker-runner`). More info at https://docs.drone.io/runner/docker/installation/linux/.
## Setting up a server for auto-deployment
For Drone to be able to deploy to a server, you need:
- A drone user on the server, added to the `docker` group
- An SSH key, added as a secret in Drone, and added to `/home/drone/.ssh/authorized_keys on the server`
1. Add a `drone` user on `example.zone`, the server which youre hosting the site on.
a. `sudo adduser drone`
b. create an SSH key for the user using `ssh-keygen` , e.g. `sudo -u drone ssh-keygen`
c. copy the contents of the public side of the new key to `/home/drone/.ssh/authorized_keys`
d. run `chmod go-rwx /home/drone/.ssh`
e. add `drone` to `AllowUsers` in `/etc/ssh/sshd_confand` restart SSH, `sudo service sshd restart`
2. Give the drone user access to the `docker` group; `sudo usermod -aG docker drone`
3. Generate a new SSH key and insert it as a Drone “orgsecret”
a. Log into Drone as `admin`, then either:
b. Add the “orgsecret” using the [Drone CLI](https://docs.drone.io/cli/install/):
i. Go to the “account” page https://drone.autonomic.zone/account
ii. Copy/paste the “Example CLI usage” into a terminal (you might want to add to `~/.bashrc` to make this easier next time)
iii. Run `drone orgsecret add [org you're adding the org secret to] [domain name] @drone_ssh_[example.zone]`
c. Add the “orgsecret” using the Drone web interface:
i. Find the repository page, or the page for another repository in the same organisation, in Drone
ii. On the “Settings” tab, under “Organization” on the left, click “Secrets”, then create a new secret and paste in the private key value
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: "drone/drone:2.17.0"
image: "drone/drone:2.25.0"
volumes:
- "data:/data"
configs:
@ -39,7 +39,7 @@ services:
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=1.3.1+2.17.0"
- "coop-cloud.${STACK_NAME}.version=1.8.0+2.25.0"
volumes:
data: