Commit bbbfe277 authored by Georgi Petkov's avatar Georgi Petkov
Browse files

feat: add node -v in all gitlab-ci yml files

parent 28a70595
Pipeline #29761 passed with stages
in 49 seconds
image: "node:10.14"
image: "node:15.14"
stages:
- setup
- test
include:
- "https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/shared.yml"
- "https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/setup.yml"
- "https://git.brickblock.sh/devops/project-templates/raw/master/gitlab-ci/lint.yml"
- "https://git.brickblock.sh/devops/project-templates/raw/feat/gitlab-runner-new/gitlab-ci/shared.yml"
- "https://git.brickblock.sh/devops/project-templates/raw/feat/gitlab-runner-new/gitlab-ci/setup.yml"
- "https://git.brickblock.sh/devops/project-templates/raw/feat/gitlab-runner-new/gitlab-ci/lint.yml"
......@@ -10,6 +10,7 @@ build_image:
dependencies:
- build
script:
- node -v
- docker login --username gitlab-ci-token --password $CI_BUILD_TOKEN
$CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG || true
......
......@@ -11,5 +11,6 @@ build:
- node_modules
- build
script:
- node -v
- yarn build
- yarn install --frozen-lockfile --production --ignore-scripts
......@@ -6,6 +6,7 @@ lint:
- .skip-artifacts
interruptible: true
script:
- node -v
- wget https://github.com/hadolint/hadolint/releases/download/v1.16.3/hadolint-Linux-x86_64 -O hadolint
- chmod +x hadolint
- export PATH=$PWD:$PATH
......
......@@ -13,6 +13,7 @@ tag:
- docker-new
extends: .skip-artifacts
script:
- node -v
- docker login $CI_REGISTRY --username gitlab-ci-token --password
$CI_BUILD_TOKEN
- docker pull $CI_REGISTRY_IMAGE:latest
......@@ -42,6 +43,7 @@ production:
only:
- tags
script:
- node -v
- jq "${JQ_TRANSFORMATION}" brickblock.json > terraform.tfvars.json
- export FIRST_INGRESS=$(jq "${JQ_FIRST_INGRESS}" terraform.tfvars.json)
- |
......
......@@ -2,4 +2,6 @@ release_manual:
extends: .release
when: manual
# Each job requires a `script` field
script: echo 'Running manual release job'
script:
- node -v
- echo 'Running manual release job'
......@@ -4,5 +4,6 @@ release_automatically:
paths:
- build
script:
- node -v
- echo '//registry.npmjs.org/:_authToken=${SECRET_NPM_TOKEN}' > .npmrc
- npm publish --access public
......@@ -10,7 +10,7 @@ review:
| { host: .host, path: (.path // "/") }] else [ { host:
"${CI_ENVIRONMENT_SLUG}.${ISSUER_SUBDOMAIN}.${REVIEW_DOMAIN}", path: "/" }
] end | { "ingresses": . }'
JQ_FIRST_INGRESS: '.ingresses[0] | (.host + .path)'
JQ_FIRST_INGRESS: ".ingresses[0] | (.host + .path)"
DEPLOYMENT_NAME: ${CI_ENVIRONMENT_SLUG}
extends:
- .except-ci-release
......@@ -24,6 +24,7 @@ review:
interruptible: true
retry: 1
script:
- node -v
- jq "${JQ_TRANSFORMATION}" brickblock.json > terraform.tfvars.json
- export FIRST_INGRESS=$(jq "${JQ_FIRST_INGRESS}" terraform.tfvars.json)
- |
......@@ -86,7 +87,7 @@ stop_review:
| { host: .host, path: (.path // "/") }] else [ { host:
"${CI_ENVIRONMENT_SLUG}.${ISSUER_SUBDOMAIN}.${REVIEW_DOMAIN}", path: "/" }
] end | { "ingresses": . }'
JQ_FIRST_INGRESS: '.ingresses[0] | (.host + .path)'
JQ_FIRST_INGRESS: ".ingresses[0] | (.host + .path)"
DEPLOYMENT_NAME: ${CI_ENVIRONMENT_SLUG}
extends:
- .except-ci-release
......@@ -99,6 +100,7 @@ stop_review:
refs:
- tags
script:
- node -v
- jq "${JQ_TRANSFORMATION}" brickblock.json > terraform.tfvars.json
- export FIRST_INGRESS=$(jq "${JQ_FIRST_INGRESS}" terraform.tfvars.json)
- |
......@@ -155,7 +157,7 @@ master_deploy_to_review:
JQ_TRANSFORMATION: '
[ { host: "${CI_PROJECT_PATH_SLUG}.master.${REVIEW_DOMAIN}", path: "/" } ]
| { "ingresses": . }'
JQ_FIRST_INGRESS: '.ingresses[0] | (.host + .path)'
JQ_FIRST_INGRESS: ".ingresses[0] | (.host + .path)"
DEPLOYMENT_NAME: master-${CI_PROJECT_PATH_SLUG}
extends:
- .except-ci-release
......@@ -166,6 +168,7 @@ master_deploy_to_review:
interruptible: true
retry: 1
script:
- node -v
- jq "${JQ_TRANSFORMATION}" brickblock.json > terraform.tfvars.json
- export FIRST_INGRESS=$(jq "${JQ_FIRST_INGRESS}" terraform.tfvars.json)
- |
......
......@@ -10,6 +10,7 @@ sentry_release_production:
dependencies:
- build
script:
- node -v
- yarn global add @sentry/cli
- sentry-cli releases deploys "$CI_COMMIT_SHORT_SHA" new -e "$NODE_ENV"
only:
......@@ -28,6 +29,7 @@ sentry_release_staging:
dependencies:
- build
script:
- node -v
- yarn global add @sentry/cli
- sentry-cli releases new "$CI_COMMIT_SHORT_SHA"
- sentry-cli releases files "$CI_COMMIT_SHORT_SHA" upload-sourcemaps
......
......@@ -6,4 +6,5 @@ setup:
- .skip-artifacts
interruptible: true
script:
- node -v
- yarn install --frozen-lockfile
......@@ -9,7 +9,7 @@ staging:
| { host: .host, path: (.path // "/") }] else [ { host:
"${STAGING_SUBDOMAIN}.${STAGING_DOMAIN}", path: "/" } ] end | {
"ingresses": . }'
JQ_FIRST_INGRESS: '.ingresses[0] | (.host + .path)'
JQ_FIRST_INGRESS: ".ingresses[0] | (.host + .path)"
DEPLOYMENT_NAME: ${CI_PROJECT_PATH_SLUG}
extends:
- .except-ci-release
......@@ -22,6 +22,7 @@ staging:
name: staging
url: https://${FIRST_INGRESS}
script:
- node -v
- jq "${JQ_TRANSFORMATION}" brickblock.json > terraform.tfvars.json
- export FIRST_INGRESS=$(jq "${JQ_FIRST_INGRESS}" terraform.tfvars.json)
- |
......
......@@ -7,4 +7,5 @@ test:
- .skip-artifacts
interruptible: true
script:
- node -v
- yarn test --coverage
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment