deploy via proxy.uncloseai.com runner (replace Salt)

This commit is contained in:
russell@unturf.com 2026-02-13 17:17:42 -05:00
parent 1a23ba1c23
commit 4a365d8ffb
2 changed files with 4 additions and 38 deletions

View file

@ -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"'

View file

@ -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"'