Skip to content

Commit

Permalink
Make build process of Caddy deterministic (close #158)
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhanunlu committed May 2, 2018
1 parent ded5124 commit b9d8a78
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions provisioning/roles/sp_mini_3_build_go_projects/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,24 @@
src: "{{control_plane_dir}}/snowplow-mini-control-plane-api"
dest: "{{executables_dir}}"

- name: Get Caddy source code
- name: Create caddy source dir
become: yes
environment:
GOPATH: "{{ go_path }}"
file:
path: $GOPATH/src/github.com/mholt
state: directory

- git:
repo: 'https://github.com/mholt/caddy.git'
dest: /usr/local/src/caddy
version: v0.10.10

- name: Locate caddy
become: yes
environment:
PATH: "{{ lookup('env','PATH') }}:{{ go_bin }}"
GOPATH: "{{ go_path }}"
shell: "go get -u github.com/mholt/caddy"
command: mv /usr/local/src/caddy $GOPATH/src/github.com/mholt/

- name: Get Caddyserver builds
environment:
Expand Down

0 comments on commit b9d8a78

Please sign in to comment.