mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Update Go version to 1.24.2 and revise deb_package script
This commit is contained in:
committed by
Dan Christian Bogos
parent
5463eb61c6
commit
cba94d3efe
@@ -325,14 +325,9 @@
|
||||
with_items: "{{ distributions }}"
|
||||
when: cgrates_branch == 'master' or hostvars['apt']['git_tag_result'].stdout_lines | length > 0
|
||||
|
||||
- name: Move the new .orig.tar.gz to /var/packages/deb
|
||||
become: true
|
||||
ansible.builtin.shell: "mv /tmp/cgrates*.orig*.tar.* /var/packages/deb/{{ cgrates_branch }}/"
|
||||
when: cgrates_branch == 'master' or hostvars['apt']['git_tag_result'].stdout_lines | length > 0
|
||||
|
||||
- name: Move the new package to /var/packages/deb
|
||||
become: true
|
||||
ansible.builtin.shell: "mv /tmp/cgrates*~deb{{ item.version }}u1* /var/packages/deb/{{ cgrates_branch }}/{{ item.codename }}/"
|
||||
ansible.builtin.shell: "mv /tmp/cgrates_*~deb{{ item.version }}u1*.deb /var/packages/deb/{{ cgrates_branch }}/{{ item.codename }}/"
|
||||
with_items: "{{ distributions }}"
|
||||
when: cgrates_branch == 'master' or hostvars['apt']['git_tag_result'].stdout_lines | length > 0
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
go_version: 1.24.1
|
||||
go_version: 1.24.2
|
||||
go_platform: linux
|
||||
go_arch: amd64
|
||||
go_tarball: go{{ go_version }}.{{ go_platform }}-{{ go_arch }}.tar.gz
|
||||
go_download_url: https://dl.google.com/go/{{ go_tarball }}
|
||||
go_checksum: dea9ca38a0b852a74e81c26134671af7c0fbe65d81b0dc1c5bfe22cf7d4c8858
|
||||
go_checksum: 68097bd680839cbc9d464a0edce4f7c333975e27a90246890e9f1078c7e702ad
|
||||
install_go: true
|
||||
|
||||
# Cleaning caches assumes go is available (either installed by the role or pre-existing)
|
||||
|
||||
@@ -74,7 +74,7 @@ RUN apt-get clean && \
|
||||
RUN touch /logs/mariadb.log /logs/mariadb_script.log /logs/rabbitmq.log
|
||||
RUN chmod 777 /logs/mariadb.log /logs/mariadb_script.log /logs/rabbitmq.log
|
||||
|
||||
RUN wget -O go.tgz "https://storage.googleapis.com/golang/go1.24.1.linux-amd64.tar.gz" --progress=dot:giga
|
||||
RUN wget -O go.tgz "https://storage.googleapis.com/golang/go1.24.2.linux-amd64.tar.gz" --progress=dot:giga
|
||||
RUN tar -C /usr/local -xzf go.tgz
|
||||
RUN rm go.tgz
|
||||
|
||||
|
||||
@@ -146,8 +146,8 @@ To install the latest Go version at the time of writing this documentation, run:
|
||||
# sudo dnf install -y wget tar for .rpm distros
|
||||
sudo rm -rf /usr/local/go
|
||||
cd /tmp
|
||||
wget https://go.dev/dl/go1.24.1.linux-amd64.tar.gz
|
||||
sudo tar -C /usr/local -xzf go1.24.1.linux-amd64.tar.gz
|
||||
wget https://go.dev/dl/go1.24.2.linux-amd64.tar.gz
|
||||
sudo tar -C /usr/local -xzf go1.24.2.linux-amd64.tar.gz
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
|
||||
Installation:
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,6 +1,6 @@
|
||||
module github.com/cgrates/cgrates
|
||||
|
||||
go 1.24.1
|
||||
go 1.24.2
|
||||
|
||||
// replace github.com/cgrates/radigo => ../radigo
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Define global variables
|
||||
%global version 0.11.0~dev
|
||||
%global go_version 1.24.1
|
||||
%global go_version 1.24.2
|
||||
|
||||
# Define system paths
|
||||
%define debug_package %{nil}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Define global variables
|
||||
%global version 0.11.0~dev
|
||||
%global go_version 1.24.1
|
||||
%global go_version 1.24.2
|
||||
%global git_commit %(echo $gitLastCommit)
|
||||
%global releaseTag %(echo $rpmTag)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user