Skip to content

Commit

Permalink
Ensure pipeline environments generate new admin passwords (#667)
Browse files Browse the repository at this point in the history
by avoiding passing local insecure password to them
  • Loading branch information
andytson-inviqa authored Apr 8, 2022
1 parent 415d703 commit eeab718
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' : ''"
Expand Down

0 comments on commit eeab718

Please sign in to comment.