mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Clean the cache and modcache for ansible before building CGRateS
This commit is contained in:
committed by
Dan Christian Bogos
parent
87f539f3c3
commit
21762def72
@@ -138,6 +138,26 @@
|
||||
become: yes
|
||||
become_user: "{{ gouser }}"
|
||||
|
||||
- name: clean go cache
|
||||
become: yes
|
||||
shell: "go clean --cache"
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
|
||||
- name: clean go modcache
|
||||
become: yes
|
||||
shell: "go clean --modcache"
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
|
||||
- name: sync the go mod with vendor
|
||||
become: yes
|
||||
shell: "go mod vendor"
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
args:
|
||||
chdir: '{{ cgrates_dir }}'
|
||||
|
||||
- name: build cgrates
|
||||
shell: "sh {{ cgrates_dir }}/build.sh"
|
||||
environment:
|
||||
|
||||
@@ -118,6 +118,26 @@
|
||||
become: yes
|
||||
become_user: "{{ gouser }}"
|
||||
|
||||
- name: clean go cache
|
||||
become: yes
|
||||
shell: "go clean --cache"
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
|
||||
- name: clean go modcache
|
||||
become: yes
|
||||
shell: "go clean --modcache"
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
|
||||
- name: sync the go mod with vendor
|
||||
become: yes
|
||||
shell: "go mod vendor"
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
args:
|
||||
chdir: '{{ cgrates_dir }}'
|
||||
|
||||
- name: build cgrates for docker
|
||||
shell: "sh {{ cgrates_dir }}/data/docker/scratch/build.sh"
|
||||
environment:
|
||||
|
||||
@@ -171,6 +171,26 @@
|
||||
become: yes
|
||||
become_user: "{{ gouser }}"
|
||||
|
||||
- name: clean go cache
|
||||
become: yes
|
||||
shell: "go clean --cache"
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
|
||||
- name: clean go modcache
|
||||
become: yes
|
||||
shell: "go clean --modcache"
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
|
||||
- name: sync the go mod with vendor
|
||||
become: yes
|
||||
shell: "go mod vendor"
|
||||
environment:
|
||||
PATH: "{{ lookup('env','PATH') }}:{{ golang_gopath }}/bin:/usr/local/go/bin:{{ ansible_env.PATH }}"
|
||||
args:
|
||||
chdir: '{{ cgrates_dir }}'
|
||||
|
||||
- name: build cgrates
|
||||
shell: "sh {{ cgrates_dir }}/build.sh"
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user