Update .gitlab-ci.yml
This commit is contained in:
parent
11c109d8d4
commit
ce3e350e17
1 changed files with 8 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
stages:
|
||||
- build
|
||||
- www.remarkbox.com
|
||||
- deploy
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
|
@ -20,11 +20,11 @@ build:
|
|||
- commit-hash.txt
|
||||
expire_in: 1 month
|
||||
|
||||
www.remarkbox.com:
|
||||
stage: www.remarkbox.com
|
||||
tags: ["www.remarkbox.com"]
|
||||
script:
|
||||
# publish build to Salt Master
|
||||
- sudo /opt/salt-call-state-highstate.sh
|
||||
deploy:
|
||||
stage: deploy
|
||||
needs: [build]
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "master"'
|
||||
- if: '$CI_COMMIT_BRANCH == "develop" || $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "main"'
|
||||
when: on_success
|
||||
trigger:
|
||||
include: .gitlab-ci.deploy.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue