-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.yml
33 lines (27 loc) · 1.03 KB
/
deploy.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
- hosts: all
vars:
upstream_repository: git@github.com:Cecca/danny.git
local_repository: ~/danny
tasks:
- name: update the repository from upstream
when: ansible_host == "sss00"
git:
repo: "{{ upstream_repository }}"
dest: "{{ local_repository }}"
version: "{{ danny_branch }}"
- name: update the repository locally
when: ansible_host != "sss00"
git:
repo: "sss00:{{ local_repository }}"
dest: "{{ local_repository }}"
version: "{{ danny_branch }}"
- name: compile the code and install
shell: RUSTFLAGS="-C target-cpu=native" PATH=$PATH:~/.cargo/bin cargo +nightly install --path . --force --locked
args:
chdir: "{{ local_repository }}/danny"
executable: /bin/bash
- name: compile the utilities and install
shell: RUSTFLAGS="-C target-cpu=native" PATH=$PATH:~/.cargo/bin cargo +nightly install --path . --force --locked
args:
chdir: "{{ local_repository }}/danny-utilities"
executable: /bin/bash