Child pipeline fixes race condition.
new file: .gitlab-ci.deploy.yml modified: .gitlab-ci.yml
This commit is contained in:
parent
2925230de2
commit
feb32bb2e2
2 changed files with 17 additions and 10 deletions
|
|
@ -1,7 +1,7 @@
|
|||
stages:
|
||||
- test
|
||||
- build
|
||||
- my.remarkbox.com
|
||||
- deploy
|
||||
|
||||
test:
|
||||
stage: test
|
||||
|
|
@ -47,12 +47,8 @@ build:
|
|||
- commit-hash.txt
|
||||
expire_in: 1 month
|
||||
|
||||
|
||||
my.remarkbox.com:
|
||||
stage: my.remarkbox.com
|
||||
tags: ["my.remarkbox.com"]
|
||||
script:
|
||||
# publish build to Salt Master
|
||||
- sudo /opt/salt-call-state-highstate.sh
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "main"'
|
||||
deploy:
|
||||
stage: deploy
|
||||
needs: [build]
|
||||
trigger:
|
||||
include: .gitlab-ci.deploy.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue