better secret management

This commit is contained in:
Quentin 2023-03-16 13:27:57 +01:00
parent d9b77a4f14
commit abb21b5eea
Signed by: quentin
GPG key ID: E9602264D639FF68
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"ref": "refs/heads/main",
"after": "acbf7c5fcdc38935a872b3c01129a74385dc2517",
"after": "d9b77a4f147d0096af8e982cb7dcfcefab7e6a09",
"repository": {
"owner": {
"username": "quentin"
@ -9,6 +9,6 @@
"clone_url": "https://git.deuxfleurs.fr/quentin/albatros.git"
},
"sender": {
"username": "external_contributor"
"username": "quentin"
}
}

View file

@ -46,7 +46,7 @@ export COMMIT=${NOMAD_META_COMMIT}
export BRANCH=${NOMAD_META_BRANCH}
export REPO_URL=${NOMAD_META_REPO_URL}
export FLAVOR=${NOMAD_META_FLAVOR}
if [[ -f /var/run/secrets/albatros/secret.txt ]]; then
if [[ -s /var/run/secrets/albatros/secret.txt ]]; then
export SECRET_PATH=/var/run/secrets/albatros/secret.txt
fi
./.albatros