-
Notifications
You must be signed in to change notification settings - Fork 10
/
deploy_with_migration.yml
34 lines (31 loc) · 1.05 KB
/
deploy_with_migration.yml
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
33
34
---
- name: Deploy obs-api package
hosts: obs
pre_tasks:
- include_tasks: ./includes/pending-migration.yml
- include_tasks: ./includes/deployment-block.yml
- name: zypper unlock
block:
- include_tasks: ./includes/zypper-unlock.yml
tasks:
- name: With Migration
block:
- include_role:
name: refresh_repositories
- include_role:
name: set_apache_maintenance_mode
- include_role:
name: deploy
- include_role:
name: run_migrations
- include_role:
name: enable_flipper_features_for_group
- include_role:
name: unset_apache_maintenance_mode
when: deployment_allowed is succeeded and no_pending_migration is failed
post_tasks:
- name: post tasks
block:
- include_tasks: ./includes/zypper-lock.yml
- include_tasks: ./includes/github-deployment.yml
when: deployment_allowed is succeeded and no_pending_migration is failed