added short deploy script, to deploy it to my local rsppi2
This commit is contained in:
7
.sops.yaml
Normal file
7
.sops.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
keys:
|
||||
- &primary age1xwmpq4ydrqmj8c9petpp9q5ujupdkd40puqqgpqvnuw23nckuupshrwcr9
|
||||
creation_rules:
|
||||
- path_regex: deploy.config.toml$
|
||||
key_groups:
|
||||
- age:
|
||||
- *primary
|
||||
15
deploy.config.toml.secret
Normal file
15
deploy.config.toml.secret
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"data": "ENC[AES256_GCM,data:ie0ngMYra78CNOa4uLqgnGRWfWZvKCnxrmz7nezgdi3HN2x2ooMFcW+oIq5aOVUOpBAXHAo9EuuexRWrVgObOXwtWfVw92C+,iv:FBTgA6hI6P8Ls6/zLFBSVb8/ZriqU1BBSMNh5X+4gjc=,tag:9WuvIuXvkGVFHHNZcDkV7w==,type:str]",
|
||||
"sops": {
|
||||
"age": [
|
||||
{
|
||||
"recipient": "age1xwmpq4ydrqmj8c9petpp9q5ujupdkd40puqqgpqvnuw23nckuupshrwcr9",
|
||||
"enc": "-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB6aWhUMUVYRlJRNmRIYmVn\nZjVrMThjblltYWxnRUZvUXQ0VjRFYXJod0dBCnZHelNMWTYxOE9CSEl0MTZ3RnM1\nT2R2U1Y5ZHZhU2NFWHEvU1UrcGc2Sm8KLS0tIForR1J4ZVJXeGRucGo5MWMweVpx\nQkxrOHorZFFJZkY3aTBOQi9YRzRtOVEK5n9IyDyvaXzrUVC8JnNLDM+GoGor3TQe\nQ7938OP9t2+gkrRpOBn+t2Bw5WhX0fSB2cmcq6xgQLuVnIdgLUh4yA==\n-----END AGE ENCRYPTED FILE-----\n"
|
||||
}
|
||||
],
|
||||
"lastmodified": "2025-11-26T20:53:52Z",
|
||||
"mac": "ENC[AES256_GCM,data:txZjdkP/2M92YrngT+nILsar316i0ILTjV9iJuE59mAqIXKsUMS+BEWwTfiwtz4pMvyJ5TEFVhvJ//pwFuoXkRUngZcs9wWy2xzCAGK0SA7TIA8nO1k1Qp1akbZX+dkcDUJRuk64LiR1Mnh0FbA1Eej2Fccve9ZAyKHFD4I57O4=,iv:phcTOg8GUY6mJwqE0WTbP0fUTYZNBgEeqvwilGVgnJY=,tag:U35RSlQ0AMy2T5yixGOAfw==,type:str]",
|
||||
"unencrypted_suffix": "_unencrypted",
|
||||
"version": "3.11.0"
|
||||
}
|
||||
}
|
||||
20
deploy.nu
Executable file
20
deploy.nu
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env nu
|
||||
|
||||
def main [] {
|
||||
main run
|
||||
}
|
||||
|
||||
def "main run" [] {
|
||||
let config = get-config
|
||||
nix build $".#($config | get target_platform)"
|
||||
scp result/bin/snooze-pal ($config | get target_machine):bin/snooze-pal
|
||||
ssh ($config | get target_machine) "chmod +rwx bin/snooze-pal && bin/snooze-pal"
|
||||
}
|
||||
|
||||
def get-config [] {
|
||||
if ('./deploy.config.toml.secret' | path exists) {
|
||||
return (sops decrypt deploy.config.toml.secret | from toml)
|
||||
} else {
|
||||
return (open deploy.config.toml)
|
||||
}
|
||||
}
|
||||
BIN
implohq-alarm
Executable file
BIN
implohq-alarm
Executable file
Binary file not shown.
1
snooze-pal-arx
Symbolic link
1
snooze-pal-arx
Symbolic link
@@ -0,0 +1 @@
|
||||
/nix/store/m6v14vr94gcbq8hh3nlpspky384hbyc6-snooze-pal-arx
|
||||
@@ -2,5 +2,5 @@
|
||||
// See the LICENSE folder for details.
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
println!("Hello, world!!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user