debian-mirror-gitlab/lib/gitlab/ci/templates/Managed-Cluster-Applications.gitlab-ci.yml
2021-09-04 02:52:04 +05:30

32 lines
1.2 KiB
YAML

################################################################################
# WARNING
################################################################################
#
# This template is DEPRECATED and scheduled for removal in GitLab 15.0
# See https://gitlab.com/gitlab-org/gitlab/-/issues/333610 for more context.
#
# To get started with a Cluster Management Project, we instead recommend
# using the updated project template:
#
# - Documentation: https://docs.gitlab.com/ee/user/clusters/management_project_template.html
# - Source code: https://gitlab.com/gitlab-org/project-templates/cluster-management/
#
################################################################################
apply:
stage: deploy
image: "registry.gitlab.com/gitlab-org/cluster-integration/cluster-applications:v0.43.1"
environment:
name: production
variables:
TILLER_NAMESPACE: gitlab-managed-apps
GITLAB_MANAGED_APPS_FILE: $CI_PROJECT_DIR/.gitlab/managed-apps/config.yaml
script:
- gitlab-managed-apps /usr/local/share/gitlab-managed-apps/helmfile.yaml
only:
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
artifacts:
when: on_failure
paths:
- tiller.log