update novops conf
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Simon Vieille 2023-12-06 19:40:30 +01:00
parent 8eb6ba303c
commit 60c60016a1
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 7 additions and 7 deletions

View file

@ -8,21 +8,21 @@ when:
branch: [master, master-*, develop, develop-*, feature/*]
steps:
db-wait:
image: gitnet.fr/deblan/timeout:latest
commands:
- /bin/timeout -t 30 -v -c 'while true; do nc -z -v db 3306 2>&1 | grep succeeded && exit 0; sleep 0.5; done'
secrets:
image: gitnet.fr/deblan/novops
secrets: [vault_addr, vault_token]
commands:
- novops load -e build > .secrets
db-wait:
image: gitnet.fr/deblan/timeout:latest
commands:
- /bin/timeout -t 30 -v -c 'while true; do nc -z -v db 3306 2>&1 | grep succeeded && exit 0; sleep 0.5; done'
db-create:
image: mariadb:10.3
commands:
- . /.secrets
- . .secrets
- mysql -hdb -uroot -proot -e "CREATE DATABASE app"
- eval "$MYSQLDUMP" | mysql -hdb -uroot -proot app

View file

@ -18,7 +18,7 @@ steps:
image: deblan/mage
volumes: *volumes
commands:
- . ./.secrets
- . .secrets
- cd "/builds/$CI_COMMIT_SHA"
- mkdir "$HOME/.ssh"
- echo "$SSH_PRIV_KEY" > "$HOME/.ssh/id_ed25519"