diff options
author | jloup <jean-loup.jamet@trainline.com> | 2018-02-14 14:19:09 +0100 |
---|---|---|
committer | jloup <jean-loup.jamet@trainline.com> | 2018-02-14 14:19:09 +0100 |
commit | 7a9e5112eaaea58d55f181d3e5296e4ff839921c (patch) | |
tree | 968ed193f42a1fad759cc89ad2f8ad5b0091291e /cmd/ansible/release.yml | |
download | Front-7a9e5112eaaea58d55f181d3e5296e4ff839921c.tar.gz Front-7a9e5112eaaea58d55f181d3e5296e4ff839921c.tar.zst Front-7a9e5112eaaea58d55f181d3e5296e4ff839921c.zip |
initial commit
Diffstat (limited to 'cmd/ansible/release.yml')
-rw-r--r-- | cmd/ansible/release.yml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/cmd/ansible/release.yml b/cmd/ansible/release.yml new file mode 100644 index 0000000..4cd005c --- /dev/null +++ b/cmd/ansible/release.yml | |||
@@ -0,0 +1,59 @@ | |||
1 | --- | ||
2 | - name: Release to github repo | ||
3 | hosts: 127.0.0.1 | ||
4 | connection: local | ||
5 | tasks: | ||
6 | - include_vars: vars.yml | ||
7 | |||
8 | # Create release. | ||
9 | - github_release: | ||
10 | token: "{{ github_release_token }}" | ||
11 | user: jloup | ||
12 | repo: dist | ||
13 | action: create_release | ||
14 | tag: "crypto-v{{ version }}" | ||
15 | target: master | ||
16 | name: Crypto Release | ||
17 | body: "NOTE: this repo does not include any source code." | ||
18 | |||
19 | # Build server app. | ||
20 | - make: | ||
21 | chdir: ../app | ||
22 | target: release | ||
23 | - shell: | ||
24 | github-release upload \ | ||
25 | -s "{{ github_release_token }}" \ | ||
26 | -u jloup \ | ||
27 | -r dist \ | ||
28 | -t crypto-v{{ version }} \ | ||
29 | -n "cryptoportfolio-linux-amd64" \ | ||
30 | -l "cryptoportfolio binary (linux amd64)" \ | ||
31 | -R \ | ||
32 | -f ../app/dist/linux_amd64/cryptoportfolio-app | ||
33 | - shell: | ||
34 | github-release upload \ | ||
35 | -s "{{ github_release_token }}" \ | ||
36 | -u jloup \ | ||
37 | -r dist \ | ||
38 | -t crypto-v{{ version }} \ | ||
39 | -n "cryptoportfolio-linux-386" \ | ||
40 | -l "cryptoportfolio binary (linux 386)" \ | ||
41 | -R \ | ||
42 | -f ../app/dist/linux_386/cryptoportfolio-app | ||
43 | |||
44 | # Build webapp. | ||
45 | - make: | ||
46 | chdir: ../web | ||
47 | target: release | ||
48 | params: | ||
49 | ENV: prod | ||
50 | - shell: | ||
51 | github-release upload \ | ||
52 | -s "{{ github_release_token }}" \ | ||
53 | -u jloup \ | ||
54 | -r dist \ | ||
55 | -t crypto-v{{ version }} \ | ||
56 | -n "webapp.tar.gz" \ | ||
57 | -R \ | ||
58 | -f ../web/build/webapp.tar.gz | ||
59 | |||