fix token name and actually add the secret

This commit is contained in:
Charlotte 🦝 Delenk 2022-02-18 20:13:36 +01:00
parent b34479b748
commit cd31b2a153
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -6,7 +6,7 @@ let script = ''
${pkgs.gitMinimal}/bin/git fetch origin ${pkgs.gitMinimal}/bin/git fetch origin
${pkgs.gitMinimal}/bin/git reset --hard origin/main ${pkgs.gitMinimal}/bin/git reset --hard origin/main
TOKEN="$(${pkgs.coreutils}/bin/cat /run/secrets/hydra/gitea_token)" TOKEN="$(${pkgs.coreutils}/bin/cat /run/secrets/services/hydra/gitea_token)"
deploy_finished() { deploy_finished() {
MAIN_SHA=$(${pkgs.curl}/bin/curl -X GET \ MAIN_SHA=$(${pkgs.curl}/bin/curl -X GET \
@ -56,4 +56,5 @@ let script = ''
OnBootSec = 3600; OnBootSec = 3600;
}; };
}; };
sops.secrets."services/hydra/gitea_token" = { };
} }