You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
602 B
Clojure
18 lines
602 B
Clojure
(ns dda.devops-build.image
|
|
(:require [orchestra.core :refer [defn-spec]]
|
|
[babashka.tasks :as t]
|
|
[dda.devops-build.devops :as d]
|
|
[dda.devops-build.devops.domain :as dd]
|
|
[dda.devops-build.image.domain :as domain]))
|
|
|
|
(def default
|
|
(merge d/default {}))
|
|
|
|
(defn-spec dbuild nil?
|
|
[devops ::d/devops]
|
|
(let [final (merge default devops)]
|
|
(apply t/shell (dd/clean-build-dir-command final))
|
|
(apply t/shell (dd/create-build-dir-command final))
|
|
(apply t/shell (domain/copy-image-command final))
|
|
(apply t/shell (domain/dbuild-command final))))
|