2019-07-07 11:18:12 +05:30
|
|
|
build:
|
|
|
|
stage: build
|
2020-06-23 00:09:42 +05:30
|
|
|
image: "registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image:v0.2.3"
|
2019-09-30 21:07:59 +05:30
|
|
|
variables:
|
|
|
|
DOCKER_TLS_CERTDIR: ""
|
2019-07-07 11:18:12 +05:30
|
|
|
services:
|
2020-06-23 00:09:42 +05:30
|
|
|
- docker:19.03.11-dind
|
2019-07-07 11:18:12 +05:30
|
|
|
script:
|
|
|
|
- |
|
|
|
|
if [[ -z "$CI_COMMIT_TAG" ]]; then
|
|
|
|
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG}
|
|
|
|
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_SHA}
|
|
|
|
else
|
|
|
|
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE}
|
|
|
|
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_TAG}
|
|
|
|
fi
|
|
|
|
- /build/build.sh
|
2020-05-24 23:13:21 +05:30
|
|
|
rules:
|
|
|
|
- if: '$CI_COMMIT_TAG || $CI_COMMIT_BRANCH'
|