CI: Add initial-install.sql to release file
This commit is contained in:
parent
9187738d94
commit
0e96b647b2
|
@ -155,6 +155,26 @@ test:
|
||||||
after_script:
|
after_script:
|
||||||
- '"${DOCROOT}/bin/migrate" down'
|
- '"${DOCROOT}/bin/migrate" down'
|
||||||
|
|
||||||
|
dump-database:
|
||||||
|
image: ${TEST_IMAGE}
|
||||||
|
stage: test
|
||||||
|
needs: [ build-image ]
|
||||||
|
services:
|
||||||
|
- mariadb:10.2
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- initial-install.sql
|
||||||
|
before_script:
|
||||||
|
- apk add -q mariadb-client
|
||||||
|
- HOMEDIR=$PWD
|
||||||
|
- cd "${DOCROOT}"
|
||||||
|
- ./bin/migrate
|
||||||
|
script:
|
||||||
|
- >-
|
||||||
|
mysqldump -h "${MYSQL_HOST}" -u "${MYSQL_USER}" -p"${MYSQL_PASSWORD}" "${MYSQL_DATABASE}"
|
||||||
|
> "${HOMEDIR}/initial-install.sql"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Release
|
# Release
|
||||||
#
|
#
|
||||||
|
@ -200,16 +220,18 @@ build-release-file:
|
||||||
- audit-yarn
|
- audit-yarn
|
||||||
- audit-composer
|
- audit-composer
|
||||||
- test
|
- test
|
||||||
|
- dump-database
|
||||||
dependencies:
|
dependencies:
|
||||||
- build-image
|
- build-image
|
||||||
- build-image-nginx
|
- build-image-nginx
|
||||||
|
- dump-database
|
||||||
artifacts:
|
artifacts:
|
||||||
name: release_${CI_COMMIT_REF_SLUG}_${CI_JOB_ID}_${CI_COMMIT_SHA}
|
name: release_${CI_COMMIT_REF_SLUG}_${CI_JOB_ID}_${CI_COMMIT_SHA}
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
paths:
|
paths:
|
||||||
- ./release/
|
- ./release/
|
||||||
script:
|
script:
|
||||||
- rsync -vAax "${DOCROOT}" "${DOCROOT}/.babelrc" "${DOCROOT}/.browserslistrc" release/
|
- rsync -vAax "${DOCROOT}" "${DOCROOT}/.babelrc" "${DOCROOT}/.browserslistrc" "initial-install.sql" release/
|
||||||
- rsync -vAax public/assets release/public/
|
- rsync -vAax public/assets release/public/
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
|
|
|
@ -39,10 +39,10 @@ The Engelsystem may be installed manually or by using the provided [docker setup
|
||||||
* The webserver must read the ```.htaccess``` file and ```mod_rewrite``` must be enabled
|
* The webserver must read the ```.htaccess``` file and ```mod_rewrite``` must be enabled
|
||||||
|
|
||||||
* Recommended: Directory Listing should be disabled.
|
* Recommended: Directory Listing should be disabled.
|
||||||
* There must a be MySQL database created with a user who has full rights to that database.
|
* There must be a MySQL database set up with a user who has full rights to that database.
|
||||||
* If necessary, create a ```config/config.php``` to override values from ```config/config.default.php```.
|
* If necessary, create a ```config/config.php``` to override values from ```config/config.default.php```.
|
||||||
* To remove values from the `footer_items`, `available_themes`, `locales`, `tshirt_sizes` or `headers` lists the config file has to be renamed.
|
* To remove values from the `footer_items`, `available_themes`, `locales`, `tshirt_sizes` or `headers` lists the config file has to be renamed.
|
||||||
* To import the database the ```bin/migrate``` script has to be called. If you are not allowed to execute scripts, then execute the ```install-<version>.sql``` script. Download at [Releases](https://github.com/engelsystem/engelsystem/releases) page.
|
* To import the database, the ```bin/migrate``` script has to be run. If you can't execute scripts, you can use the `initial-install.sql` file from the release zip.
|
||||||
* In the browser, login with credentials ```admin``` : ```asdfasdf``` and change the password.
|
* In the browser, login with credentials ```admin``` : ```asdfasdf``` and change the password.
|
||||||
|
|
||||||
The Engelsystem can now be used.
|
The Engelsystem can now be used.
|
||||||
|
|
Loading…
Reference in New Issue