remove novops
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Simon Vieille 2024-01-10 10:08:20 +01:00
parent 1a7ea2e5a2
commit 476dece659
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 2 additions and 16 deletions

View file

@ -13,16 +13,10 @@ steps:
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-create:
image: mariadb:10.3
secrets: [mysqldump]
commands:
- . ./.secrets
- mysql -hdb -uroot -proot -e "CREATE DATABASE app"
- eval "$MYSQLDUMP" | mysql -hdb -uroot -proot app

View file

@ -8,20 +8,12 @@ when:
skip_clone: true
steps:
secrets:
image: gitnet.fr/deblan/novops
secrets: [vault_addr, vault_token]
volumes: *volumes
commands:
- cd "/builds/$CI_COMMIT_SHA"
- novops load -e deploy > .secrets
app-deploy:
image: deblan/mage
secrets: [ssh_priv_key, ssh_user, ssh_host, app_directory]
volumes: *volumes
commands:
- cd "/builds/$CI_COMMIT_SHA"
- . ./.secrets
- mkdir "$HOME/.ssh"
- echo "$SSH_PRIV_KEY" > "$HOME/.ssh/id_ed25519"
- chmod 700 "$HOME/.ssh"