1
0
Fork 0
js-utils/.gitlab/ci-tools.yml

67 lines
1.5 KiB
YAML

.build-base:
image: docker.artifacts.apextoaster.com/apextoaster/base:1.5
tags:
- platform:k8s
- runner:shared
.build-aws:
extends:
- .build-base
.build-curl:
extends:
- .build-base
.build-climate:
image: docker.artifacts.apextoaster.com/apextoaster/code-climate:0.6
tags:
- platform:k8s
- runner:shared
allow_failure: false
variables:
CI_BRANCH: "${CI_COMMIT_REF_NAME}"
GIT_BRANCH: "${CI_COMMIT_REF_NAME}"
GIT_COMMIT_SHA: "${CI_COMMIT_SHA}"
.build-docker:
image: docker.artifacts.apextoaster.com/apextoaster/docker:20.10
services:
- docker.artifacts.apextoaster.com/apextoaster/docker-dind:20.10
tags:
- platform:k8s
- runner:shared
allow_failure: false
before_script:
- mkdir ${HOME}/.docker
- echo "${DOCKER_SECRET}" | base64 -d > ${HOME}/.docker/config.json
script:
- ${CI_PROJECT_DIR}/scripts/docker-build.sh --push
after_script:
- rm -rfv ${HOME}/.docker
variables:
DOCKER_CERT_PATH: "/shared/docker/client"
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://localhost:2376
DOCKER_TLS_CERTDIR: "/shared/docker"
DOCKER_TLS_VERIFY: 1
IMAGE_ROOT: "${CI_PROJECT_DIR}"
.build-node:
image: docker.artifacts.apextoaster.com/apextoaster/node:16.14
tags:
- platform:k8s
- runner:shared
allow_failure: false
before_script:
- echo "${NPM_SECRET}" | base64 -d > ${HOME}/.npmrc
.build-sonar:
image: docker.artifacts.apextoaster.com/apextoaster/sonar-scanner:4.4
tags:
- platform:k8s
- runner:shared
allow_failure: false