Put runner into auto deploy mode
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c13ecd507d
commit
f83011c876
22
.drone.yml
Normal file
22
.drone.yml
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
kind: pipeline
|
||||
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: Build Drone docker runner docker image
|
||||
image: docker:stable
|
||||
volumes:
|
||||
- name: docker_sock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker build --no-cache -t autonomic/drone-docker-runner:drone .
|
||||
|
||||
- name: Deploy Drone docker runner with Dokku
|
||||
image: appleboy/drone-git-push:0.2.0-linux-amd64
|
||||
settings:
|
||||
remote: ssh://dokku@dokku.autonomic.zone:222/drone-docker-runner
|
||||
ssh_key:
|
||||
from_secret: drone_deploy_key
|
||||
when:
|
||||
branch: master
|
43
README.md
43
README.md
@ -1,43 +1,10 @@
|
||||
# drone-docker-runner
|
||||
|
||||
[![Build Status](https://drone.autonomic.zone/api/badges/autonomic-cooperative/drone-docker-runner/status.svg)](https://drone.autonomic.zone/autonomic-cooperative/drone-docker-runner)
|
||||
|
||||
> https://drone.io/
|
||||
|
||||
## Setup
|
||||
# Deploy
|
||||
|
||||
### Pre-requisites
|
||||
|
||||
1. You have SSH access to dokku.autonomic.zone
|
||||
1. You have sudo privilege escalation working
|
||||
|
||||
```
|
||||
Host dokku.autonomic.zone
|
||||
Hostname dokku.autonomic.zone
|
||||
User <your-username>
|
||||
Port 222
|
||||
IdentityFile ~/.ssh/<your-ssh-key-private-file>
|
||||
```
|
||||
|
||||
See the password-store under `autonomic-dokku` for your sudo password.
|
||||
|
||||
### Environment
|
||||
|
||||
1. Clone the [infrastructure repository](https://gitlab.com/autonomic-cooperative/infrastructure)
|
||||
1. Copy the sample file: `cp .envrc.sample .envrc`
|
||||
1. Ensure that the .envrc `PASSWORD_STORE_DIR` env var points to the `infrastructure/credentials/password-store`
|
||||
|
||||
### Python
|
||||
|
||||
You only need to do this if you're working with Ansible vault (encrypting/decrypting new secrets).
|
||||
|
||||
```bash
|
||||
$ python3 -m venv .venv
|
||||
$ source .venv/bin/activate
|
||||
$ pip install -r requirements.txt
|
||||
```
|
||||
|
||||
## Deploy
|
||||
|
||||
```bash
|
||||
$ git remote add dokku dokku@dokku.autonomic.zone:drone-docker-runner
|
||||
$ git push dokku
|
||||
```
|
||||
1. Push your changes to master and Dokku will try to automatically release
|
||||
1. See the [Drone dashboard to see the build](https://drone.autonomic.zone/autonomic-cooperative/drone-docker-runner/)
|
||||
|
2
app.json
2
app.json
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "drone-docker-runner",
|
||||
"description": "Docker based build runner for the Drone controller",
|
||||
"repository": "https://git.autonomic.zone/autonomic-cooperative/drone"
|
||||
"repository": "https://git.autonomic.zone/autonomic-cooperative/drone-docker-runner"
|
||||
}
|
||||
|
@ -1,13 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
main() {
|
||||
set -eu
|
||||
|
||||
echo "Nothing to do for now..."
|
||||
}
|
||||
|
||||
main
|
||||
|
||||
/bin/drone-controller "$@"
|
Reference in New Issue
Block a user