summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/templates/Managed-Cluster-Applications.gitlab-ci.yml
blob: ca63e9421305dde71bbc4890296ee4414b79de9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
################################################################################
# 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