Skip to content
Snippets Groups Projects
Commit 9e91582a authored by jurgenhaas's avatar jurgenhaas
Browse files

lakedrops/portal/data-core/datacore-parent#30 Add DataCore tasks for scheduled pipelines

parent 88cafad1
Branches
No related tags found
No related merge requests found
......@@ -116,7 +116,6 @@ Prepare Import:
- git config user.name "Deployment"
- git fetch
- git pull
- cd /data/${CI_COMMIT_REF_NAME}
variables:
GIT_STRATEGY: none
cache: {}
......@@ -134,11 +133,10 @@ ImportIntoDatacore:
- job: PrepareImport
before_script: !reference [.prepareaccess, before_script]
script:
- cd /data/${CI_COMMIT_REF_NAME}
- dc exec app curl --fail -X POST http://localhost:4100/api/import/basic
- dc exec app curl --fail -X POST http://localhost:4100/api/import/realestate
- if [[ "DATACORE_IMPORT_INTERNAL_USERS" == "yes ]]; then dc exec app curl --fail -X POST http://localhost:4100/api/import/internalusers; fi
- dc exec app curl --fail -X GET http://localhost:4100/api/export/basic >/dev/null 2>&1
- dc exec app curl --fail -X GET http://localhost:4100/api/export/realestate >/dev/null 2>&1
variables:
GIT_STRATEGY: none
cache: {}
......@@ -214,6 +212,9 @@ Push Changes:
optional: true
before_script: !reference [.prepareaccess, before_script]
script:
- cd /data/${CI_COMMIT_REF_NAME}
- dc exec app curl --fail -X GET http://localhost:4100/api/export/basic >/dev/null 2>&1
- dc exec app curl --fail -X GET http://localhost:4100/api/export/realestate >/dev/null 2>&1
- cd /data/${CI_COMMIT_REF_NAME}/data
- git status > /tmp/gitstatus.log
- EC=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment