scala / scala-jenkins-infra

A Chef cookbook that manages Scala's CI infrastructure.
https://scala-ci.typesafe.com
Apache License 2.0
14 stars 17 forks source link

scabot git hooks & deploy setup #76

Closed adriaanm closed 7 years ago

adriaanm commented 9 years ago
create ~scabot/scabot/.git/hooks/post-receive from https://github.com/mislav/git-deploy/blob/master/lib/hooks/post-receive.sh
chmod a+x ~scabot/scabot/.git/hooks/post-receive
git config receive.denyCurrentBranch ignore
adriaanm commented 9 years ago

either make it a bare repo, or create config as follows (can drop the git config thingy)

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = https://github.com/scala/scabot.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[receive]
    denyCurrentBranch = ignore
adriaanm commented 7 years ago

done, again -- restarting is still shaky though, but travis ci should again show sbt building sbt on each merged pr

SethTisue commented 7 years ago

🎉

this was, like, the first thing that came up when I started at Lightbend Typesafe