nixin-krops/generate-runner-token.sh

6 lines
333 B
Bash
Raw Normal View History

#!/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)