Compare commits

...

17 Commits

Author SHA1 Message Date
3wc fe53a73a78 chore: publish 1.6.0+2.22.0 release
continuous-integration/drone/push Build is passing Details
2024-02-08 14:29:19 -03:00
trav 5bbf1e37b4 formatting
continuous-integration/drone/push Build is passing Details
2024-01-17 15:58:12 -08:00
trav 63d7346dc5 added some more docz
continuous-integration/drone/push Build is passing Details
2024-01-17 15:56:44 -08:00
trav 4c0647677c updated readme a tiny bit, could use even more clarity
continuous-integration/drone/push Build is passing Details
2024-01-17 13:28:00 -08:00
3wc a41129c1e9 chore: publish 1.5.0+2.20.0 release
continuous-integration/drone/push Build is passing Details
2023-08-28 14:21:25 +02:00
3wc 5cb5d6706d chore: publish 1.4.0+2.18.0 release
continuous-integration/drone/push Build is passing Details
2023-07-24 14:34:02 +01:00
3wc f472e38aae chore: publish 1.3.1+2.17.0 release
continuous-integration/drone/push Build is passing Details
2023-04-27 12:52:40 -04:00
3wc a646327283 Switch to self-hosted stack-ssh-deploy image [mass update]
continuous-integration/drone/push Build is passing Details
2023-01-21 11:49:55 -08:00
3wc 1283e01b52 Fix CI by adding networks: [mass update]
continuous-integration/drone/push Build is passing Details
2023-01-20 11:58:41 -08:00
3wc fadf67f847 Automatically generate catalogue on release [mass update]
continuous-integration/drone/push Build is failing Details
Re: coop-cloud/recipes-catalogue-json#4
2023-01-20 10:27:11 -08:00
3wc 0357b469f6 Update abra syntax in examples (finally) [mass update]
continuous-integration/drone/push Build is failing Details
2023-01-19 16:02:27 -08:00
3wc 057ab4df40 chore: publish 1.3.0+2.16.0 release
continuous-integration/drone/push Build is failing Details
2022-12-22 11:26:55 -08:00
decentral1se b5d4fc5d58 chore: publish 1.2.0+2.12.0 release
continuous-integration/drone/push Build is failing Details
2022-06-01 09:28:25 +02:00
decentral1se 494b4d934d
remove old cruft 2022-06-01 09:25:39 +02:00
3wc a3bc5d6823 Goodbye, emojis! 😢
[ci skip]
2021-11-23 12:19:04 +02:00
3wc 229b41df1f Mass README update
[ci skip]
2021-11-21 21:31:59 +02:00
decentral1se f5a160f232 chore: new v2.4 release
continuous-integration/drone/push Build is failing Details
2021-10-12 11:36:05 +02:00
4 changed files with 86 additions and 18 deletions

View File

@ -3,10 +3,12 @@ kind: pipeline
name: deploy to swarm-test.autonomic.zone
steps:
- name: deployment
image: decentral1se/stack-ssh-deploy:latest
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: drone
networks:
- proxy
deploy_key:
from_secret: drone_ssh_swarm_test
generate_secrets: true
@ -24,11 +26,17 @@ trigger:
- master
---
kind: pipeline
name: recipe release
name: generate recipe catalogue
steps:
- name: release a new version
image: thecoopcloud/drone-abra:latest
image: plugins/downstream
settings:
command: recipe drone release
deploy_key:
from_secret: abra_bot_deploy_key
server: https://build.coopcloud.tech
token:
from_secret: drone_abra-bot_token
fork: true
repositories:
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -3,14 +3,14 @@
[![Build Status](https://drone.autonomic.zone/api/badges/coop-cloud/drone/status.svg)](https://drone.autonomic.zone/coop-cloud/drone)
<!-- metadata -->
* **Category**: Development
* **Status**: ?
* **Image**: [`drone/drone`](https://hub.docker.com/r/drone/drone), ❶💚, upstream
* **Category**: Apps
* **Status**: 1, alpha
* **Image**: [`drone/drone`](https://hub.docker.com/r/drone/drone), 4, upstream
* **Healthcheck**: Yes
* **Backups**: ?
* **Email**: ?
* **Tests**: ❷💛
* **SSO**: ❶💚 (OAuth)
* **Tests**: 2
* **SSO**: 3 (OAuth)
<!-- endmetadata -->
## Basic usage
@ -19,10 +19,73 @@
2. Deploy [`coop-cloud/traefik`]
3. `abra app new drone --secrets` (optionally with `--pass` if you'd like
to save secrets in `pass`)
4. `abra app YOURAPPDOMAIN config` - be sure to change `DOMAIN` to something that resolves to
4. `abra app config YOURAPPDOMAIN` - be sure to change `DOMAIN` to something that resolves to
your Docker swarm box
5. `abra app YOURAPPDOMAIN deploy`
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.0.4"
image: "drone/drone:2.22.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.0.0+2.0.4"
- "coop-cloud.${STACK_NAME}.version=1.6.0+2.22.0"
volumes:
data:

View File

@ -1,3 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}