Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker Build Images
scripts
Merge requests
!4
Allow running icinga-provide-go $ARCH
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Allow running icinga-provide-go $ARCH
arch
into
master
Overview
0
Commits
2
Pipelines
2
Changes
1
Merged
Alexander A. Klimov
requested to merge
arch
into
master
3 years ago
Overview
0
Commits
2
Pipelines
2
Changes
1
Expand
as we need Go not only for amd64
Edited
3 years ago
by
Alexander A. Klimov
0
0
Merge request reports
Compare
master
version 1
27ff1180
3 years ago
master (base)
and
latest version
latest version
6945e85b
2 commits,
3 years ago
version 1
27ff1180
1 commit,
3 years ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
icinga-provide-go
+
4
−
3
Options
#!/bin/bash
VERSION_GO
=
"1.16.5"
ARCH_GO
=
"
${
1
:-
amd64
}
"
set
-ex
echo
"Downloading Go Version
${
VERSION_GO
}
"
curl
-LO
https://golang.org/dl/go
${
VERSION_GO
}
.linux-
amd64
.tar.gz
curl
-LO
"
https://golang.org/dl/go
${
VERSION_GO
}
.linux-
${
ARCH_GO
}
.tar.gz
"
rm
-rf
/usr/local/go
echo
"Unpacking Go"
tar
-C
/usr/local
-xzf
go
${
VERSION_GO
}
.linux-
amd64
.tar.gz
tar
-C
/usr/local
-xzf
"
go
${
VERSION_GO
}
.linux-
${
ARCH_GO
}
.tar.gz
"
echo
"Deleting Go Binary Archive"
rm
-rf
go
${
VERSION_GO
}
.linux-
amd64
.tar.gz
rm
-rf
"
go
${
VERSION_GO
}
.linux-
${
ARCH_GO
}
.tar.gz
"
ln
-s
/usr/local/go/bin/
*
/usr/local/bin
Loading