deploy via proxy.uncloseai.com runner (replace Salt)
This commit is contained in:
parent
06e897e5a7
commit
60918eedba
2 changed files with 5 additions and 38 deletions
|
|
@ -1,11 +0,0 @@
|
||||||
stages:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
www.makepostsell.com:
|
|
||||||
stage: deploy
|
|
||||||
tags: ["mps-router1"]
|
|
||||||
script:
|
|
||||||
# publish build to Salt Master
|
|
||||||
- sudo /opt/salt-call-state-highstate.sh
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_BRANCH == "master"'
|
|
||||||
|
|
@ -1,32 +1,10 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
build:
|
deploy:
|
||||||
stage: build
|
|
||||||
tags: ["build"]
|
|
||||||
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 sha512 of www.makepostsell.com.tar.gz
|
|
||||||
- sha512sum www.makepostsell.com.tar.gz >> www.makepostsell.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.makepostsell.com.tar.gz
|
|
||||||
- www.makepostsell.com.tar.gz.hash
|
|
||||||
- commit-hash.txt
|
|
||||||
#expire_in: 1 month
|
|
||||||
|
|
||||||
trigger_deploy:
|
|
||||||
stage: deploy
|
stage: deploy
|
||||||
trigger:
|
tags: ["proxy.uncloseai.com"]
|
||||||
include:
|
script:
|
||||||
- local: .gitlab-ci-deploy.yml
|
- sudo /usr/local/bin/deploy-www.sh makepostsell .
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH == "master"'
|
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue