2020-09-01 23:42:58 +00:00
|
|
|
.build-base:
|
2021-08-05 20:04:22 +00:00
|
|
|
image: docker.artifacts.apextoaster.com/apextoaster/base:1.5
|
2019-11-01 23:59:39 +00:00
|
|
|
tags:
|
|
|
|
- platform:k8s
|
|
|
|
- runner:shared
|
|
|
|
|
2020-09-01 23:42:58 +00:00
|
|
|
.build-aws:
|
|
|
|
extends:
|
|
|
|
- .build-base
|
|
|
|
|
|
|
|
.build-curl:
|
|
|
|
extends:
|
|
|
|
- .build-base
|
|
|
|
|
2019-11-01 23:59:39 +00:00
|
|
|
.build-climate:
|
2020-12-29 08:05:56 +00:00
|
|
|
image: docker.artifacts.apextoaster.com/apextoaster/code-climate:0.6
|
2019-11-01 23:59:39 +00:00
|
|
|
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:
|
2021-08-06 01:46:43 +00:00
|
|
|
image: docker.artifacts.apextoaster.com/apextoaster/docker:20.10
|
2019-11-01 23:59:39 +00:00
|
|
|
services:
|
2021-08-06 03:18:12 +00:00
|
|
|
- docker.artifacts.apextoaster.com/apextoaster/docker-dind:20.10
|
2019-11-01 23:59:39 +00:00
|
|
|
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:
|
2021-08-06 03:48:34 +00:00
|
|
|
DOCKER_CERT_PATH: "/shared/docker/client"
|
2019-11-01 23:59:39 +00:00
|
|
|
DOCKER_DRIVER: overlay2
|
2021-08-06 03:48:34 +00:00
|
|
|
DOCKER_HOST: tcp://localhost:2376
|
|
|
|
DOCKER_TLS_CERTDIR: "/shared/docker"
|
|
|
|
DOCKER_TLS_VERIFY: 1
|
|
|
|
IMAGE_ROOT: "${CI_PROJECT_DIR}"
|
2019-11-01 23:59:39 +00:00
|
|
|
|
|
|
|
.build-node:
|
2023-03-05 03:51:44 +00:00
|
|
|
image: docker.artifacts.apextoaster.com/apextoaster/node:16.19
|
2019-11-01 23:59:39 +00:00
|
|
|
tags:
|
|
|
|
- platform:k8s
|
|
|
|
- runner:shared
|
|
|
|
allow_failure: false
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- echo "${NPM_SECRET}" | base64 -d > ${HOME}/.npmrc
|
|
|
|
|
|
|
|
.build-sonar:
|
2020-12-29 08:05:56 +00:00
|
|
|
image: docker.artifacts.apextoaster.com/apextoaster/sonar-scanner:4.4
|
2019-11-01 23:59:39 +00:00
|
|
|
tags:
|
|
|
|
- platform:k8s
|
|
|
|
- runner:shared
|
2020-12-29 08:05:56 +00:00
|
|
|
allow_failure: false
|