20 lines
943 B
YAML
20 lines
943 B
YAML
---
|
|
# Docker configuration
|
|
service_name: "{{ app_name }}-{{ deploy_env }}{{ env_tag }}"
|
|
#docker_registry: "{{ ansible_env.CI_REGISTRY | default('gitlab.forlife.one') }}"
|
|
#docker_project_path: "{{ ansible_env.CI_PROJECT_PATH | default('') }}"
|
|
#docker_image_tag: "{{ ansible_env.CI_COMMIT_TAG | default('latest') }}"
|
|
#docker_image_full: "{{ ansible_env.CI_REGISTRY_IMAGE }}:{ ansible_env.CI_COMMIT_TAG | default(docker_image_tag) }"
|
|
#docker_image_name: "{{ ansible_env.CI_REGISTRY_IMAGE }}"
|
|
docker_image_rollback: "{{ app_name }}:{{ previous_version.stdout | default('latest') }}"
|
|
|
|
# Directory configuration
|
|
deploy_dir: "{{ '/home/' + server_user + '/ci/deployments/' + app_name + '/' + deploy_env }}"
|
|
current_dir: "{{ '/home/' + server_user + '/ci/deployments/' + app_name + '/current' }}"
|
|
|
|
# GitLab CI integration
|
|
#gitlab_ci_user: "{{ ansible_env.CI_REGISTRY_USER | default('gitlab-ci-token') }}"
|
|
|
|
# Health Check Configuration
|
|
health_path: ""
|