Add build triggering on change to master
This commit is contained in:
parent
a55a31598e
commit
2b84898d75
|
@ -7,9 +7,11 @@
|
||||||
[lambdacd-git.core :as git]))
|
[lambdacd-git.core :as git]))
|
||||||
|
|
||||||
|
|
||||||
(def pipeline-def
|
|
||||||
`(
|
|
||||||
manualtrigger/wait-for-manual-trigger
|
(def ^:const pipeline-def
|
||||||
|
`((either wait-for-git
|
||||||
|
manualtrigger/wait-for-manual-trigger)
|
||||||
(with-workspace
|
(with-workspace
|
||||||
git-clone
|
git-clone
|
||||||
git/list-changes
|
git/list-changes
|
||||||
|
|
|
@ -9,6 +9,11 @@
|
||||||
(def repo-uri "https://github.com/status-im/commiteth.git")
|
(def repo-uri "https://github.com/status-im/commiteth.git")
|
||||||
(def repo-branch "master")
|
(def repo-branch "master")
|
||||||
|
|
||||||
|
(defn wait-for-git [args ctx]
|
||||||
|
(git/wait-for-git ctx repo-uri
|
||||||
|
:ref "refs/heads/master"
|
||||||
|
:ms-between-polls (* 30 1000)))
|
||||||
|
|
||||||
(defn git-clone [args ctx]
|
(defn git-clone [args ctx]
|
||||||
(shell/bash ctx (:cwd args) "pwd")
|
(shell/bash ctx (:cwd args) "pwd")
|
||||||
(git/clone ctx repo-uri repo-branch (:cwd args)))
|
(git/clone ctx repo-uri repo-branch (:cwd args)))
|
||||||
|
|
Loading…
Reference in New Issue