mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-22 16:04:25 +01:00
Fix camptules after update
Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
parent
f47f746c56
commit
f658de38a1
|
@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue