diff options
| author | Samuel Wilhelmsson <samuel.wilhelmsson@gmail.com> | 2025-01-12 00:15:39 +0100 |
|---|---|---|
| committer | Samuel Wilhelmsson <samuel.wilhelmsson@gmail.com> | 2025-01-12 00:15:39 +0100 |
| commit | eccf849e5054b1f1f78d2b6c75d097fae3fc4df8 (patch) | |
| tree | 30dc4d90daa7ea1fa035cf977449ed66c2c20d29 /deploy | |
| parent | e4fc03baf716f879b44c6ce18781d3dc702354c3 (diff) | |
| download | tinygram-eccf849e5054b1f1f78d2b6c75d097fae3fc4df8.tar.gz tinygram-eccf849e5054b1f1f78d2b6c75d097fae3fc4df8.zip | |
clean up deploy after new secret magic
Diffstat (limited to 'deploy')
| -rwxr-xr-x | deploy | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -35,30 +35,9 @@ (print "-- syncing assets --") ($ rsync ;rsync-asset-args) -(print "-- creating service locally--") -(def template (slurp "service/tinygram.service.template")) - -(print "-- decrypting env --") -($ agebox decrypt --all) -(def envfile (slurp "prod.env")) -($ agebox encrypt --all) -(print "-- encrypting env --") - -(def env-statements - (filter (fn [s] (not (empty? s))) - (string/split "\n" envfile))) - -(def env-block (string ;(map (fn [env] (string "Environment=\"" env "\"\n")) env-statements))) - -(spit "service/tinygram.service" - (peg/replace "<1>\n" env-block template)) - (print "-- syncing service --") ($ rsync ;rsync-service-args) -(print "-- cleaning up service locally --") -($ rm "service/tinygram.service") - (print "-- cleaning up binary --") ($ rm "tinygram") |
