cicd: updated ansible inventory paths

This commit is contained in:
plup 2021-04-13 18:41:29 +02:00
parent 9371f5d46f
commit 1b4b42b2b3
1 changed files with 20 additions and 5 deletions

View File

@ -33,6 +33,7 @@ build:
- dist/ - dist/
except: except:
- tags - tags
- feature/ansible
tags: tags:
- test - test
@ -53,6 +54,7 @@ test:e2e:
- cypress run -e CYPRESS_baseUrl=http://localhost:3000 - cypress run -e CYPRESS_baseUrl=http://localhost:3000
except: except:
- tags - tags
- feature/ansible
tags: tags:
- test - test
@ -67,8 +69,10 @@ test1:
extends: .ansible extends: .ansible
stage: integration stage: integration
environment: environment:
name: test1 name: dev/test1
url: https://test1.startinblox.com url: https://test1.startinblox.com
variables:
ANSIBLE_INVENTORY: inventory/dev/
only: only:
- /^feature\/.*/ - /^feature\/.*/
when: manual when: manual
@ -77,8 +81,10 @@ test2:
extends: .ansible extends: .ansible
stage: integration stage: integration
environment: environment:
name: test2 name: dev/test2
url: https://test2.startinblox.com url: https://test2.startinblox.com
variables:
ANSIBLE_INVENTORY: inventory/dev
only: only:
- /^feature\/.*/ - /^feature\/.*/
when: manual when: manual
@ -87,8 +93,10 @@ test3:
extends: .ansible extends: .ansible
stage: integration stage: integration
environment: environment:
name: test3 name: dev/test3
url: https://test3.startinblox.com url: https://test3.startinblox.com
variables:
ANSIBLE_INVENTORY: inventory/dev
only: only:
- /^feature\/.*/ - /^feature\/.*/
when: manual when: manual
@ -97,8 +105,10 @@ stg1:
extends: .ansible extends: .ansible
stage: acceptance stage: acceptance
environment: environment:
name: stg1 name: review/stg1
url: https://stg1.startinblox.com url: https://stg1.startinblox.com
variables:
ANSIBLE_INVENTORY: inventory/stg
only: only:
- /^release\/.*/ - /^release\/.*/
when: manual when: manual
@ -107,8 +117,10 @@ stg2:
extends: .ansible extends: .ansible
stage: acceptance stage: acceptance
environment: environment:
name: stg2 name: review/stg2
url: https://stg2.startinblox.com url: https://stg2.startinblox.com
variables:
ANSIBLE_INVENTORY: inventory/stg
only: only:
- /^release\/.*/ - /^release\/.*/
when: manual when: manual
@ -129,6 +141,9 @@ publish:
hublworld: hublworld:
extends: .ansible extends: .ansible
stage: deployment
variables:
ANSIBLE_INVENTORY: inventory/prd
only: only:
- master - master
when: manual when: manual