29 lines
No EOL
651 B
YAML
29 lines
No EOL
651 B
YAML
stages:
|
|
- build
|
|
- publish
|
|
|
|
build:
|
|
stage: build
|
|
tags: ["shell"]
|
|
script:
|
|
#tar -zcvf www.remarkbox.com.tar.gz output
|
|
- rm -rf .git
|
|
- cd ..; tar -zcvf www.remarkbox.com.tar.gz www.remarkbox.com; mv www.remarkbox.com.tar.gz www.remarkbox.com; cd www.remarkbox.com
|
|
|
|
# create commit-hash.txt to track this build's git commit hash.
|
|
- echo $CI_COMMIT_SHA >> commit-hash.txt
|
|
|
|
|
|
artifacts:
|
|
paths:
|
|
- www.remarkbox.com.tar.gz
|
|
- commit-hash.txt
|
|
expire_in: 1 month
|
|
|
|
|
|
publish:
|
|
stage: publish
|
|
tags: ["shell"]
|
|
script:
|
|
# publish build to Salt Master
|
|
- sudo /opt/salt-call-put-artifacts-onto-salt-master.sh |