Skip to content

Instantly share code, notes, and snippets.

@sween
Last active September 2, 2021 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sween/80db2061902cf7b80d0516ecfd024e4d to your computer and use it in GitHub Desktop.
Save sween/80db2061902cf7b80d0516ecfd024e4d to your computer and use it in GitHub Desktop.
.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