debian-mirror-gitlab/lib/gitlab/ci/templates/Jobs/Build.latest.gitlab-ci.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.3 KiB
YAML
Raw Normal View History

2021-11-11 11:23:49 +05:30
variables:
2023-01-13 00:05:48 +05:30
AUTO_BUILD_IMAGE_VERSION: 'v1.21.0'
2021-11-11 11:23:49 +05:30
build:
stage: build
2022-08-27 11:52:29 +05:30
image: '${CI_TEMPLATE_REGISTRY_HOST}/gitlab-org/cluster-integration/auto-build-image:${AUTO_BUILD_IMAGE_VERSION}'
2021-11-11 11:23:49 +05:30
variables:
DOCKER_TLS_CERTDIR: ''
services:
2022-05-07 20:08:51 +05:30
- name: 'docker:20.10.12-dind'
2021-11-11 11:23:49 +05:30
command: ['--tls=false', '--host=tcp://0.0.0.0:2375']
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
2021-12-11 22:18:48 +05:30
artifacts:
reports:
dotenv: gl-auto-build-variables.env
2021-11-11 11:23:49 +05:30
rules:
- if: '$BUILD_DISABLED'
when: never
- if: '$AUTO_DEVOPS_PLATFORM_TARGET == "EC2"'
when: never
- if: '$CI_COMMIT_TAG || $CI_COMMIT_BRANCH'
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:
- if: '$BUILD_DISABLED'
when: never
- if: '$AUTO_DEVOPS_PLATFORM_TARGET == "EC2"'