Update .gitlab-ci.yml file
This commit is contained in:
parent
e4bf5c2cf2
commit
25127d7e4f
1 changed files with 30 additions and 0 deletions
30
.gitlab-ci.yml
Normal file
30
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
stages:
|
||||
- build
|
||||
- publish
|
||||
|
||||
build:
|
||||
stage: build
|
||||
tags: ["shell"]
|
||||
script:
|
||||
#tar -zcvf www-makepostsell-com.tar.gz output
|
||||
- rm -rf .git
|
||||
- cd ..; tar -zcvf www-makepostsell-com.tar.gz www-makepostsell-com; mv www-makepostsell-com.tar.gz www-makepostsell-com; cd www-makepostsell-com
|
||||
|
||||
# create commit-hash.txt to track this build's git commit hash.
|
||||
- echo $CI_COMMIT_SHA >> commit-hash.txt
|
||||
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
- www-makepostsell-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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue