debian-mirror-gitlab/lib/gitlab/ci/templates/Managed-Cluster-Applications.gitlab-ci.yml

33 lines
1.2 KiB
YAML
Raw Normal View History

2021-09-04 01:27:46 +05:30
################################################################################
# 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/
#
################################################################################
2020-01-01 13:55:28 +05:30
apply:
stage: deploy
2021-09-04 01:27:46 +05:30
image: "registry.gitlab.com/gitlab-org/cluster-integration/cluster-applications:v0.43.1"
2020-01-01 13:55:28 +05:30
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:
2021-09-04 01:27:46 +05:30
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
2020-03-13 15:44:24 +05:30
artifacts:
when: on_failure
paths:
- tiller.log