new file: .gitlab-ci-deploy.yml

modified:   .gitlab-ci.yml
This commit is contained in:
Russell Ballestrini 2025-05-01 23:05:11 -04:00
parent 1652ba4e91
commit 5dc4341f0a
2 changed files with 18 additions and 8 deletions

11
.gitlab-ci-deploy.yml Normal file
View file

@ -0,0 +1,11 @@
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"'

View file

@ -1,6 +1,6 @@
stages:
- build
- www.makepostsell.com
- trigger_deploy
build:
stage: build
@ -22,12 +22,11 @@ build:
- commit-hash.txt
#expire_in: 1 month
www.makepostsell.com:
stage: www.makepostsell.com
tags: ["mps-router1"]
script:
# publish build to Salt Master
- sudo /opt/salt-call-state-highstate.sh
trigger_deploy:
stage: trigger-deploy
trigger:
include:
- local: .gitlab-ci-deploy.yml
rules:
- if: '$CI_COMMIT_BRANCH == "master"'