Skip to content
Snippets Groups Projects
Commit 576cb47f authored by jurgenhaas's avatar jurgenhaas
Browse files

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

parent 758e0b0d
No related branches found
No related tags found
No related merge requests found
......@@ -142,3 +142,53 @@ ImportIntoDatacore:
- tags
script:
- curl -X POST --fail -F token=${TRIGGERTOKEN} -F ref=${CI_COMMIT_REF_NAME} -F "variables[TRIGGERTASK]=DeployAssetsToDrupal" https://gitlab.lakedrops.com/api/v4/projects/${TRIGGERPROJECTID}/trigger/pipeline
DataCore XRM Check New Users:
stage: build
tags:
- deploylocal
variables:
GIT_STRATEGY: none
cache: {}
only:
refs:
- chat
- schedules
except:
variables:
- $DATACORE_JOB_NAME && $DATACORE_JOB_NAME != "XrmCheckNewUser"
before_script: !reference [.prepareaccess, before_script]
script:
- if [[ ! -d /data/develop/data/.git ]]; then git clone -b develop "git@$CI_SERVER_HOST:$CI_PROJECT_PATH.git" /data/develop/data; fi
- cd /data/develop/data
- git config user.email "deployment@lakedrops.com"
- git config user.name "Deployment"
- git fetch
- git pull
- cd /data/develop
- dc exec app curl --fail -X GET http://localhost:4000/api/import/realestate/xrm/newusers >/dev/null 2>&1
DataCore XRM Sync:
stage: build
tags:
- deploylocal
variables:
GIT_STRATEGY: none
cache: {}
only:
refs:
- chat
- schedules
except:
variables:
- $DATACORE_JOB_NAME && $DATACORE_JOB_NAME != "XrmSync"
before_script: !reference [.prepareaccess, before_script]
script:
- if [[ ! -d /data/develop/data/.git ]]; then git clone -b develop "git@$CI_SERVER_HOST:$CI_PROJECT_PATH.git" /data/develop/data; fi
- cd /data/develop/data
- git config user.email "deployment@lakedrops.com"
- git config user.name "Deployment"
- git fetch
- git pull
- cd /data/develop
- dc exec app curl --fail -X GET http://localhost:4000/api/import/realestate/xrm/sync >/dev/null 2>&1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment