config/config.yaml in docman-0.0.80 vs config/config.yaml in docman-0.0.81
- old
+ new
@@ -1,115 +1,157 @@
---
+# common hooks used in deploy targets below
+common_hooks:
+ - &execute_yaml_file
+ type: yaml_execute
+ source_type: file
+ order: -10
+ stage: build
+
+ - &execute_yaml_file_for_git_provider
+ <<: *execute_yaml_file
+ providers:
+ - :git_repo_provider
+
+ - &remove_git_dir
+ type: :yaml_execute
+ providers:
+ - :git_repo_provider
+ order: 0
+ commands:
+ - rm -fR .git
+
+ - &git_commit
+ type: :git_commit
+ order: 100
+
deploy_targets:
+ # target for local build
local:
+ # deployer handler
handler: :common_deployer
builders:
root:
handler: :dir_builder
root_chain:
- handler: :git_direct_builder
+ handler: :direct_builder
+ provider: :git_repo_provider
+ target_path_id: full_build_path
hooks:
builder:
after_execute:
- - type: :yaml_execute
- source_type: file
- order: -10
- stage: build
- drupal:
- handler: :drupal_drush_builder
+ - <<: *execute_yaml_file_for_git_provider
+ repo:
+ handler: :direct_builder
+ provider: :git_repo_provider
+ target_path_id: full_build_path
hooks:
builder:
after_execute:
- - type: :yaml_execute
- source_type: file
- order: -10
- stage: build
+ - <<: *execute_yaml_file
+ dir:
+ handler: :dir_builder
+ states:
+ development: local
+ staging: local
+ stable: local
+
+ # Target for striped (from .git dirs)
+ striped:
+ # deployer handler
+ handler: :common_deployer
+ builders:
+ root:
+ handler: :dir_builder
+ root_chain:
+ handler: :direct_builder
+ provider: :git_repo_provider
+ target_path_id: full_build_path
+ hooks:
+ builder:
+ after_execute:
+ - <<: *remove_git_dir
+ - <<: *execute_yaml_file_for_git_provider
repo:
- handler: :git_direct_builder
+ handler: :direct_builder
+ provider: :git_repo_provider
+ target_path_id: full_build_path
hooks:
builder:
after_execute:
- - type: :yaml_execute
- source_type: file
- order: -10
- stage: build
+ - <<: *remove_git_dir
+ - <<: *execute_yaml_file
dir:
handler: :dir_builder
- symlink:
- handler: :symlink_builder
states:
development: local
staging: local
stable: local
+
+ # Target for pushing build result into target repo
git_target:
+ # deployer handler
handler: :git_deployer
builders:
root:
- handler: :git_direct_builder
+ handler: :direct_builder
+ provider: :git_repo_provider
+ target_path_id: full_build_path
hooks:
builder:
after_execute:
- - type: :git_commit
- order: 100
- execution_dir: $PROJECT$
+ - <<: *git_commit
root_chain:
handler: :git_root_chain_builder
+ provider: :git_repo_provider
+ target_path_id: temp_path
hooks:
builder:
after_execute:
- - type: :yaml_execute
- source_type: file
- order: -10
- execution_dir: $PROJECT$
- stage: build
- - type: :git_commit
- order: 100
- execution_dir: $PROJECT$
- drupal:
- handler: :drupal_drush_builder
- hooks:
- builder:
- after_execute:
- - type: :git_commit
- order: 100
- execution_dir: $PROJECT$
+ - <<: *execute_yaml_file_for_git_provider
+ - <<: *git_commit
repo:
handler: :git_strip_builder
+ provider: :git_repo_provider
+ target_path_id: temp_path
hooks:
+ hooks:
builder:
before_execute:
- type: :git_pull
- execution_dir: $PROJECT$
after_execute:
- - type: :yaml_execute
- source_type: file
- order: -10
- execution_dir: $PROJECT$
- stage: build
- - type: :git_commit
- order: 100
- execution_dir: $PROJECT$
+ - <<: *execute_yaml_file_for_git_provider
+ - <<: *git_commit
dir:
handler: :dir_builder
hooks:
builder:
after_execute:
- - type: :git_commit
- order: 100
- execution_dir: $PROJECT$
- symlink:
- handler: :symlink_builder
- hooks:
- builder:
- after_execute:
- - type: :git_commit
- order: 100
- execution_dir: $PROJECT$
+ - <<: *git_commit
states:
development: dev
staging: test
stable: prod
+
environments:
local:
deploy_target: local
state: development
clean_changed: true
+ striped:
+ deploy_target: striped
+ state: development
+ clean_changed: true
+ dev:
+ deploy_target: git_target
+ state: development
+ test:
+ deploy_target: git_target
+ state: staging
+ prod:
+ deploy_target: git_target
+ state: stable
+
+components:
+ master:
+
+pipeline_script: .pipeline