Commit 141e7385 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Permite versión dinámica, ajusta CI para usarla

parent 23f5a4cc
Loading
Loading
Loading
Loading

.gitlab-ci.deploy.yml

0 → 100644
+9 −0
Original line number Diff line number Diff line
.deploy:
  variables:
    STACK: client
  environment:
    url: https://${PUBLIC_HOSTNAME}

deploy-support-branch-development:
  variables:
    VERSION: ${CI_COMMIT_SHORT_SHA}
+1 −6
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ include:
    file: '/deployment-custom-image.yml'
  - local: '/.gitlab-ci.build.yml'
  - local: '/.gitlab-ci.test.yml'
  - local: '/.gitlab-ci.deploy.yml'

stages:
  - pre-build
@@ -23,9 +24,3 @@ stages:
  - post-package
  - deploy
  - test-deploy

.deploy:
  variables:
    STACK: client
  environment:
    url: https://${PUBLIC_HOSTNAME}
+1 −1
Original line number Diff line number Diff line
const packageJson = require('../package.json'),
	version = packageJson.version,
	version = process.env.VERSION || packageJson.version,

	params = require('./params')(version),