gokku

command module
v0.0.0-...-964cb5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2015 License: CC0-1.0 Imports: 12 Imported by: 0

README

gokku

Gogs commit hook -> dokku deploy

Usage

Build a docker image off of this repo. Next make a new repo for your configuration.

FROM cinemaquestria/gokku

ADD gokku.key /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
ADD known_hosts /root/.ssh/known_hosts

RUN mkdir -p /gokku/repo

Next you need to set your environment variables. As we are mainly on PonyChat, gokku is currently hardcoded to connect to irc.ponychat.net.

ENV BOT_CHANNEL commits      # An IRC channel name without the leading hash
ENV BOT_PASS foobang barbaz  # NickServ credentials

# What to git pull from
ENV GOKKU_REPO git@github.com:cinemaquestria/site
# Where to git push to
ENV GOKKU_DOKKU_REMOTE dokku@cq.internal:cinemaquestria

Now run this somewhere. We run this on the same server that hosts the site for convenience.

In Action

Documentation

Overview

Command gokku takes a gogs commit hook and turns it into a dokku push.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL