Allow env vars OS_NAME & OS_ARCH to override os props
This is helpful when caching pods in an artifact for deployment to another OS/arch than the one we're building on.
This commit is contained in:
parent
6df443fabf
commit
8c70709927
1 changed files with 3 additions and 2 deletions
|
|
@ -15,8 +15,9 @@
|
||||||
"x86_64"
|
"x86_64"
|
||||||
arch))
|
arch))
|
||||||
|
|
||||||
(def os {:os/name (System/getProperty "os.name")
|
(def os {:os/name (or (System/getenv "OS_NAME") (System/getProperty "os.name"))
|
||||||
:os/arch (let [arch (System/getProperty "os.arch")]
|
:os/arch (let [arch (or (System/getenv "OS_ARCH")
|
||||||
|
(System/getProperty "os.arch"))]
|
||||||
(normalize-arch arch))})
|
(normalize-arch arch))})
|
||||||
|
|
||||||
(defn warn [& strs]
|
(defn warn [& strs]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue