update artifacts

modified:   .gitlab-ci.yml
This commit is contained in:
Russell Ballestrini 2022-06-30 20:21:45 -04:00
parent 9c4d995421
commit bc8248230f

View file

@ -1,29 +1,20 @@
stages:
- build
- publish
build:
stage: build
tags: ["shell"]
tags: ["build"]
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 sha512 of www.makepostsell.com.tar.gz
- sha512sum www.remarkbox.com.tar.gz >> www.remarkbox.com.tar.gz.hash
# 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
- www.remarkbox.com.tar.gz.hash
- 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