-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure pipeline environments generate new admin passwords (#667)
by avoiding passing local insecure password to them
- Loading branch information
1 parent
415d703
commit eeab718
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,15 +49,15 @@ attributes: | |
"--url=$(eval echo "$WORDPRESS_URL")" \ | ||
"--title=${APP_NAME}" \ | ||
--admin_user=admin \ | ||
--admin_password=admin123 \ | ||
"--admin_password=${ADMIN_DEFAULT_PASSWORD}" \ | ||
[email protected] | ||
- task assets:dump | ||
init: | ||
steps: | ||
- run bin/wp-cli.phar "--path=${WORDPRESS_INSTALL_DIRECTORY}" option update siteurl "$(eval echo "${WORDPRESS_URL}")" | ||
- run bin/wp-cli.phar "--path=${WORDPRESS_INSTALL_DIRECTORY}" option update home "$(eval echo "${WORDPRESS_URL}")" | ||
- run "bin/wp-cli.phar '--path=${WORDPRESS_INSTALL_DIRECTORY}' user create admin [email protected] --role=administrator --user_pass=admin123 || exit 0" | ||
- run bin/wp-cli.phar "--path=${WORDPRESS_INSTALL_DIRECTORY}" user update admin --role=administrator --user_pass=admin123 --skip-email | ||
- run "bin/wp-cli.phar '--path=${WORDPRESS_INSTALL_DIRECTORY}' user create admin [email protected] --role=administrator '--user_pass=${ADMIN_DEFAULT_PASSWORD}' || exit 0" | ||
- run bin/wp-cli.phar "--path=${WORDPRESS_INSTALL_DIRECTORY}" user update admin --role=administrator "--user_pass=${ADMIN_DEFAULT_PASSWORD}" --skip-email | ||
php: | ||
install_extensions: | ||
- "= @('services.blackfire.enabled') ? 'blackfire' : ''" | ||
|