Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.gitlab_example.yaml
variables:
GIT_CLONE_PATH: "/home/sween/builds/src"
GIT_STRATEGY: clone
deploy hsaas_dev:
stage: deploy
tags:
- dev
script:
- echo "Initializing hsaas CI/CD Build DEV..."
- git checkout dev
- git reset --hard FETCH_HEAD
- git clean -df
- echo "Importing Code into DEV..."
- |
/usr/bin/irissession ESB <<EOFESBSETUP
irissys
password
zn "CUSTOMER"
w ##class(%SYSTEM.OBJ).LoadDir("/home/sween/builds/src/customer/cls/ESB","ck",,1)
EOFESBSETUP
- echo "Running System Commands DEV..."
- sudo cp /etc/hosts /tmp/
- echo "Running Supporting COS Commands DEV..."
- |
/usr/bin/irissession ESB <<EOFESBCOMMAND
irissys
password
zn "CUSTOMER"
set sc = ##class(Ens.Director).UpdateProduction()
EOFESBCOMMAND
- |
/usr/bin/irissession CV <<EOFCVSETUP
irissys
password
zn "HSLIB"
w ##class(%SYSTEM.OBJ).LoadDir("/home/sween/builds/src/customer/cls/CV","ck",,1)
EOFCVSETUP
- |
/usr/bin/irissession UCR <<EOFUCRSETUP
irissys
password
zn "HSLIB"
w ##class(%SYSTEM.OBJ).LoadDir("/home/sween/builds/src/customer/cls/UCR","ck",,1)
EOFUCRSETUP
only:
- dev
deploy hsaas_main:
stage: deploy
tags:
- main
script:
- git checkout main
- git reset --hard FETCH_HEAD
- git clean -df
- echo "Importing Code into LIVE..."
- |
/usr/bin/irissession ESB <<EOFESBSETUP
irissys
password
zn "CUSTOMER"
w ##class(%SYSTEM.OBJ).LoadDir("/home/sween/builds/src/customer/cls/ESB","ck",,1)
EOFESBSETUP
- echo "Running System Commands LIVE..."
- sudo cp /etc/hosts /tmp/
- echo "Running Supporting COS Commands LIVE..."
- |
/usr/bin/irissession ESB <<EOFESBCOMMAND
irissys
password
zn "CUSTOMER"
set sc = ##class(Ens.Director).UpdateProduction()
EOFESBCOMMAND
- |
/usr/bin/irissession CV <<EOFCVSETUP
irissys
password
zn "HSLIB"
w ##class(%SYSTEM.OBJ).LoadDir("/home/sween/builds/src/customer/cls/CV","ck",,1)
EOFCVSETUP
- |
/usr/bin/irissession UCR <<EOFUCRSETUP
irissys
password
zn "HSLIB"
w ##class(%SYSTEM.OBJ).LoadDir("/home/sween/builds/src/customer/cls/UCR","ck",,1)
EOFUCRSETUP
only:
- main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment