Fix camptules after update

Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
main 2022-04-26 09:44:20 +02:00
parent f47f746c56
commit f658de38a1
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
3 changed files with 16 additions and 8 deletions

View file

@ -39,7 +39,7 @@ nglib.makeSystem {
pkgs.writeShellScriptBin "camptules" pkgs.writeShellScriptBin "camptules"
'' ''
export PATH=$PATH:${youtube-dl}/bin:${pkgs.ffmpeg}/bin export PATH=$PATH:${youtube-dl}/bin:${pkgs.ffmpeg}/bin
echo new cd /secrets
${lib.trace camptules.defaultPackage."x86_64-linux".outPath camptules.defaultPackage."x86_64-linux"}/bin/camptules ${lib.trace camptules.defaultPackage."x86_64-linux".outPath camptules.defaultPackage."x86_64-linux"}/bin/camptules
''; '';
}; };

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1641345147, "lastModified": 1650374345,
"narHash": "sha256-2DwiEp/pxQ/gIMlJyYOM/q2sEXaJ4LYqhdvW9TrFjpA=", "narHash": "sha256-YprUqDDomOackDUuVvXSeVQwjekXtoZSjLi0x2XjKes=",
"ref": "master", "ref": "master",
"rev": "67759ba6aede849780dcedcc3b316ccc1c0084b0", "rev": "bc20eb7c20b906ee4fc6a936da7370d00f2c2739",
"revCount": 39, "revCount": 42,
"type": "git", "type": "git",
"url": "https://gitea.redalder.org/ThyW/camptules" "url": "https://gitea.redalder.org/ThyW/camptules"
}, },

View file

@ -25,11 +25,19 @@ job "camptules" {
template { template {
data = <<EOF data = <<EOF
{{ with secret "kv/data/camptules" }} {{ with secret "kv/data/camptules" }}
BOT_TOKEN={{ .Data.data.token }} {{ .Data.data.token }}
{{ end }} {{ end }}
EOF EOF
destination = "secrets/env" destination = "secrets/cfg"
env = true }
template {
data = <<EOF
{{ with secret "kv/data/camptules" }}
{{ .Data.data.ytb_api_key }}
{{ end }}
EOF
destination = "secrets/ytb-api-key"
} }
} }
} }