update artifacts
modified: .gitlab-ci.yml
This commit is contained in:
parent
9c4d995421
commit
bc8248230f
1 changed files with 4 additions and 13 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue