deploy via proxy.uncloseai.com runner (replace Salt)
This commit is contained in:
parent
1a23ba1c23
commit
4a365d8ffb
2 changed files with 4 additions and 38 deletions
|
|
@ -1,14 +0,0 @@
|
|||
# We MUST have a separate pipeline otherwise the artifacts are stale!
|
||||
# this is why we use an include file instead of a single file!
|
||||
|
||||
stages:
|
||||
- deploy
|
||||
|
||||
www.remarkbox.com:
|
||||
stage: deploy
|
||||
tags: ["www.remarkbox.com"]
|
||||
script:
|
||||
# publish build to Salt Master
|
||||
- sudo /opt/salt-call-state-highstate.sh
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "master"'
|
||||
|
|
@ -1,30 +1,10 @@
|
|||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build:
|
||||
stage: build
|
||||
tags: ["build"]
|
||||
script:
|
||||
- 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
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
needs: [build]
|
||||
tags: ["proxy.uncloseai.com"]
|
||||
script:
|
||||
- sudo /usr/local/bin/deploy-www.sh remarkbox .
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "develop" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"'
|
||||
when: on_success
|
||||
trigger:
|
||||
include: .gitlab-ci.deploy.yml
|
||||
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue