nixin-krops/generate-runner-token.sh

5 lines
333 B
Bash
Executable file

#!/usr/bin/env bash
nix-build ./krops.nix -A gen-token-$1 && ./result > runner-$1.token
EDITOR=./token-injector.sh pass edit nixin-password-store/krops/$1/forgejo-runner-token
echo token generated and stored in pass nixin-password-store/krops/$1/forgejo-runner-toke :
echo $(pass nixin-password-store/krops/$1/forgejo-runner-token)