CI: Remove api key on db dump

This commit is contained in:
Igor Scheller 2024-01-10 11:27:47 +01:00
parent 00f039dbaa
commit 4d1502d092
1 changed files with 3 additions and 0 deletions

View File

@ -259,6 +259,9 @@ dump-database:
- cd "${DOCROOT}"
- ./bin/migrate
script:
- >-
mysql -h "${MYSQL_HOST}" -u "${MYSQL_USER}" -p"${MYSQL_PASSWORD}" "${MYSQL_DATABASE}"
-e 'UPDATE users SET api_key="" WHERE name="admin"'
- >-
mysqldump -h "${MYSQL_HOST}" -u "${MYSQL_USER}" -p"${MYSQL_PASSWORD}" "${MYSQL_DATABASE}"
> "${HOMEDIR}/initial-install.sql"