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:
|
stages:
|
||||||
- build
|
- build
|
||||||
- publish
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
tags: ["shell"]
|
tags: ["build"]
|
||||||
script:
|
script:
|
||||||
#tar -zcvf www.remarkbox.com.tar.gz output
|
|
||||||
- rm -rf .git
|
- 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
|
- 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.
|
# create commit-hash.txt to track this build's git commit hash.
|
||||||
- echo $CI_COMMIT_SHA >> commit-hash.txt
|
- echo $CI_COMMIT_SHA >> commit-hash.txt
|
||||||
|
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- www.remarkbox.com.tar.gz
|
- www.remarkbox.com.tar.gz
|
||||||
|
- www.remarkbox.com.tar.gz.hash
|
||||||
- commit-hash.txt
|
- commit-hash.txt
|
||||||
expire_in: 1 month
|
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