2021-11-11 11:23:49 +05:30
variables :
AUTO_BUILD_IMAGE_VERSION : 'v1.0.0'
2019-07-07 11:18:12 +05:30
build :
stage : build
2021-11-11 11:23:49 +05:30
image : 'registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image:${AUTO_BUILD_IMAGE_VERSION}'
2019-09-30 21:07:59 +05:30
variables :
2021-09-04 01:27:46 +05:30
DOCKER_TLS_CERTDIR : ''
2019-07-07 11:18:12 +05:30
services :
2021-09-04 01:27:46 +05:30
- name : 'docker:20.10.6-dind'
2021-06-08 01:23:25 +05:30
command : [ '--tls=false' , '--host=tcp://0.0.0.0:2375' ]
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 :
2021-06-08 01:23:25 +05:30
- if : '$BUILD_DISABLED'
when : never
2021-01-29 00:20:46 +05:30
- if : '$AUTO_DEVOPS_PLATFORM_TARGET == "EC2"'
when : never
2020-05-24 23:13:21 +05:30
- if : '$CI_COMMIT_TAG || $CI_COMMIT_BRANCH'
2021-01-29 00:20:46 +05:30
build_artifact :
stage : build
script :
- printf "To build your project, please create a build_artifact job into your .gitlab-ci.yml file.\nMore information at https://docs.gitlab.com/ee/ci/cloud_deployment\n"
- exit 1
rules :
2021-06-08 01:23:25 +05:30
- if : '$BUILD_DISABLED'
when : never
2021-01-29 00:20:46 +05:30
- if : '$AUTO_DEVOPS_PLATFORM_TARGET == "EC2"'