Use deploy-federated key with custom pred
This commit is contained in:
parent
4c7549c10c
commit
9d99de13eb
1 changed files with 8 additions and 3 deletions
|
@ -20,9 +20,15 @@
|
||||||
(st/blank? input)
|
(st/blank? input)
|
||||||
(pred/string-of-separated-by? pred/fqdn-string? #"," input)))
|
(pred/string-of-separated-by? pred/fqdn-string? #"," input)))
|
||||||
|
|
||||||
|
(defn boolean-string?
|
||||||
|
[input]
|
||||||
|
(and
|
||||||
|
(string? input)
|
||||||
|
(boolean? (Boolean/valueOf input))))
|
||||||
|
|
||||||
(s/def ::default-app-name string?)
|
(s/def ::default-app-name string?)
|
||||||
(s/def ::forgejo-image-name string?)
|
|
||||||
(s/def ::fqdn pred/fqdn-string?)
|
(s/def ::fqdn pred/fqdn-string?)
|
||||||
|
(s/def ::deploy-federated boolean-string?)
|
||||||
(s/def ::mailer-from pred/bash-env-string?)
|
(s/def ::mailer-from pred/bash-env-string?)
|
||||||
(s/def ::mailer-host pred/bash-env-string?)
|
(s/def ::mailer-host pred/bash-env-string?)
|
||||||
(s/def ::mailer-port pred/bash-env-string?)
|
(s/def ::mailer-port pred/bash-env-string?)
|
||||||
|
@ -36,7 +42,6 @@
|
||||||
(def config-defaults {:issuer "staging"})
|
(def config-defaults {:issuer "staging"})
|
||||||
|
|
||||||
(def config? (s/keys :req-un [::fqdn
|
(def config? (s/keys :req-un [::fqdn
|
||||||
::forgejo-image-name
|
|
||||||
::mailer-from
|
::mailer-from
|
||||||
::mailer-host
|
::mailer-host
|
||||||
::mailer-port
|
::mailer-port
|
||||||
|
|
Loading…
Reference in a new issue