-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplay_prebuild.yml
More file actions
74 lines (66 loc) · 1.83 KB
/
play_prebuild.yml
File metadata and controls
74 lines (66 loc) · 1.83 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
###############################################################################
# Prebuild all Madek service artifacts
#
# Runs all build steps locally so that cached artifacts are ready
# before a deploy. Each service caches its build artifact in
# BUILDCACHE_TMPDIR (defaults to $TMPDIR or /tmp).
#
# Usage:
# ./bin/ansible-playbook play_prebuild.yml
#
# To build only specific services use tags:
# ./bin/ansible-playbook play_prebuild.yml --tags api,webapp
#
###############################################################################
- hosts: localhost
connection: local
gather_facts: false
tasks:
- name: prebuild admin-webapp
shell: |
#!/usr/bin/env bash
set -euo pipefail
{{ playbook_dir }}/../admin-webapp/bin/build
args:
executable: /bin/bash
tags: [admin-webapp]
- name: prebuild webapp
shell: |
#!/usr/bin/env bash
set -euo pipefail
{{ playbook_dir }}/../webapp/bin/build
args:
executable: /bin/bash
tags: [webapp]
- name: prebuild auth
shell: |
#!/usr/bin/env bash
set -euo pipefail
{{ playbook_dir }}/../auth/bin/build
args:
executable: /bin/bash
tags: [auth]
- name: prebuild api
shell: |
#!/usr/bin/env bash
set -euo pipefail
{{ playbook_dir }}/../api/bin/build
args:
executable: /bin/bash
tags: [api]
- name: prebuild api-v2
shell: |
#!/usr/bin/env bash
set -euo pipefail
{{ playbook_dir }}/../api-v2/bin/build
args:
executable: /bin/bash
tags: [api-v2]
- name: prebuild mail
shell: |
#!/usr/bin/env bash
set -euo pipefail
{{ playbook_dir }}/../mail/bin/build
args:
executable: /bin/bash
tags: [mail, service-mail]