ci: refs #6695 use TARGET_BRANCH #1466
|
@ -20,8 +20,6 @@ node {
|
|||
'beta'
|
||||
]
|
||||
|
||||
alexm marked this conversation as resolved
|
||||
TARGET_BRANCH = PROTECTED_BRANCH.contains(env.CHANGE_TARGET) ? env.CHANGE_TARGET : "dev"
|
||||
|
||||
IS_PROTECTED_BRANCH = PROTECTED_BRANCH.contains(env.BRANCH_NAME)
|
||||
juan
commented
COMPOSE_TAG , defineixla en el stage E2E COMPOSE_TAG , defineixla en el stage E2E
|
||||
IS_LATEST = ['master', 'main'].contains(env.BRANCH_NAME)
|
||||
alexm marked this conversation as resolved
Outdated
alexm
commented
Ns si estava de antes Ns si estava de antes
|
||||
|
||||
|
@ -112,6 +110,7 @@ pipeline {
|
|||
CREDENTIALS = credentials('docker-registry')
|
||||
COMPOSE_PROJECT = "${PROJECT_NAME}-${env.BUILD_ID}"
|
||||
COMPOSE_PARAMS = "-p ${env.COMPOSE_PROJECT} -f test/cypress/docker-compose.yml --project-directory ."
|
||||
COMPOSE_TAG = PROTECTED_BRANCH.contains(env.CHANGE_TARGET) ? env.CHANGE_TARGET : 'dev'
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
juan
commented
Ficala en environment, si no no l'agafara Ficala en environment, si no no l'agafara
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
version: '3.7'
|
||||
services:
|
||||
back:
|
||||
image: 'registry.verdnatura.es/salix-back:${TARGET_BRANCH:-dev}'
|
||||
image: 'registry.verdnatura.es/salix-back:${COMPOSE_TAG:-dev}'
|
||||
volumes:
|
||||
- ./test/cypress/storage:/salix/storage
|
||||
- ./test/cypress/back/datasources.json:/salix/loopback/server/datasources.json
|
||||
|
@ -18,4 +18,4 @@ services:
|
|||
- TZ
|
||||
dns_search: .
|
||||
db:
|
||||
image: 'registry.verdnatura.es/salix-db:${TARGET_BRANCH:-dev}'
|
||||
image: 'registry.verdnatura.es/salix-db:${COMPOSE_TAG:-dev}'
|
||||
|
|
Loading…
Reference in New Issue
contains mes simple, comilles simples en 'dev'