mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
Squashed 'examples/com/' changes from f90209d2..f4cdf1a1
f4cdf1a1 [iphreeqccom] updated date a0ef4649 [iphreeqc] updated image location fae004f4 [phreeqc] Testing subtree merges a1cf1e60 [phreeqc] Testing subtree merges 2 0163f911 [phreeqc] Testing subtree merges 32073de7 Added .gitlab-ci.yml git-subtree-dir: examples/com git-subtree-split: f4cdf1a12b67211e0dc567bcd80d8718963da0c3
This commit is contained in:
parent
f90209d22a
commit
ea6a9b7cce
49
.gitlab-ci.yml
Normal file
49
.gitlab-ci.yml
Normal file
@ -0,0 +1,49 @@
|
||||
#
|
||||
# https://code.chs.usgs.gov/coupled/subtrees/phreeqc-commanuscript-cgfinal-examples-com
|
||||
# SRC 2020-12-02T18:39:55-07:00
|
||||
#
|
||||
image: ${CI_REGISTRY}/coupled/containers/buildpack-deps:bionic-scm
|
||||
|
||||
stages:
|
||||
- trigger
|
||||
|
||||
before_script:
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "${SSH_PRIVATE_KEY_ENC}" | base64 --decode | tr -d '\r' | ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
- chmod 700 ~/.ssh
|
||||
- ssh-keyscan ${CI_SERVER_HOST} >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
- git config --global user.email "darth@empire.com"
|
||||
- git config --global user.name "Darth Vader"
|
||||
|
||||
trigger-downstream:
|
||||
stage: trigger
|
||||
##
|
||||
## Only run if on the master branch and the variable GROUP is set
|
||||
##
|
||||
## change this to
|
||||
## only:
|
||||
## - master@$GROUP/subtrees/phreeqc-commanuscript-cgfinal-examples-com
|
||||
## and set GROUP to coupled before merge
|
||||
only:
|
||||
refs:
|
||||
- master
|
||||
variables:
|
||||
- $GROUP
|
||||
|
||||
## Downstream Projects
|
||||
## triggers and ids are stored at the group level
|
||||
## iphreeqc https://code.chs.usgs.gov/coupled/iphreeqc
|
||||
## iphreeqccom https://code.chs.usgs.gov/coupled/iphreeqccom
|
||||
## phreeqc https://code.chs.usgs.gov/coupled/phreeqc
|
||||
script:
|
||||
- echo triggering iphreeqc
|
||||
- curl -X POST -F token=${IPHREEQC_TRIGGER} -F ref=master https://code.chs.usgs.gov/api/v4/projects/${IPHREEQC_ID}/trigger/pipeline
|
||||
- echo triggering iphreeqccom
|
||||
- curl -X POST -F token=${IPHREEQCCOM_TRIGGER} -F ref=master https://code.chs.usgs.gov/api/v4/projects/${IPHREEQCCOM_ID}/trigger/pipeline
|
||||
- echo triggering phreeqc
|
||||
- curl -X POST -F token=${PHREEQC_TRIGGER} -F ref=master https://code.chs.usgs.gov/api/v4/projects/${PHREEQC_ID}/trigger/pipeline
|
||||
|
||||
## Upstream Projects
|
||||
## none
|
||||
Loading…
x
Reference in New Issue
Block a user