try to use a child pipeline to fix artifact link race condition.
new file: .gitlab-ci.deploy.yml modified: .gitlab-ci.yml
This commit is contained in:
parent
1ceeba80a9
commit
58cf0ad6c1
2 changed files with 30 additions and 22 deletions
24
.gitlab-ci.deploy.yml
Normal file
24
.gitlab-ci.deploy.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
stages:
|
||||
- memopoly.com
|
||||
- my.makepostsell.com
|
||||
|
||||
|
||||
memopoly.com:
|
||||
stage: memopoly.com
|
||||
tags: ["memopoly.com"]
|
||||
script:
|
||||
# publish build to Salt Master
|
||||
- sudo /opt/salt-call-state-highstate.sh
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "develop"'
|
||||
|
||||
|
||||
my.makepostsell.com:
|
||||
stage: my.makepostsell.com
|
||||
tags: ["my.makepostsell.com"]
|
||||
script:
|
||||
# publish build to Salt Master
|
||||
- sudo /opt/salt-call-state-highstate.sh
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "master"'
|
||||
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
stages:
|
||||
- test
|
||||
- build
|
||||
- memopoly.com
|
||||
- my.makepostsell.com
|
||||
- deploy
|
||||
|
||||
test:
|
||||
stage: test
|
||||
|
|
@ -41,23 +40,8 @@ build:
|
|||
- commit-hash.txt
|
||||
#expire_in: 1 month
|
||||
|
||||
memopoly.com:
|
||||
stage: memopoly.com
|
||||
tags: ["memopoly.com"]
|
||||
script:
|
||||
# publish build to Salt Master
|
||||
- sudo /opt/salt-call-state-highstate.sh
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "develop"'
|
||||
|
||||
|
||||
my.makepostsell.com:
|
||||
stage: my.makepostsell.com
|
||||
tags: ["my.makepostsell.com"]
|
||||
script:
|
||||
# publish build to Salt Master
|
||||
- sudo /opt/salt-call-state-highstate.sh
|
||||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "master"'
|
||||
|
||||
# bump
|
||||
deploy:
|
||||
stage: deploy
|
||||
needs: [build]
|
||||
trigger:
|
||||
include: gitlab-ci.deploy.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue