Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
f0c6a480
Commit
f0c6a480
authored
Mar 24, 2019
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: refactoring
parent
768c7b6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
.circleci/config.yml
+1
-1
build.go
+9
-11
No files found.
.circleci/config.yml
View file @
f0c6a480
...
...
@@ -342,7 +342,7 @@ jobs:
name
:
Deploy to grafana.com
command
:
|
cd enterprise-dist
../scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -enterprise -version "$(cat grafana.version)"
'
--nightly
../scripts/build/release_publisher/release_publisher -apikey ${GRAFANA_COM_API_KEY} -enterprise -version "$(cat grafana.version)" --nightly
deploy-enterprise-release
:
...
...
build.go
View file @
f0c6a480
...
...
@@ -421,13 +421,17 @@ func grunt(params ...string) {
}
}
func
gruntBuildArg
(
task
string
)
[]
string
{
args
:=
[]
string
{
task
}
func
genPackageVersion
()
string
{
if
includeBuildId
{
args
=
append
(
args
,
fmt
.
Sprintf
(
"--pkgVer=%v-%v"
,
linuxPackageVersion
,
linuxPackageIteration
)
)
return
fmt
.
Sprintf
(
"%v-%v"
,
linuxPackageVersion
,
linuxPackageIteration
)
}
else
{
args
=
append
(
args
,
fmt
.
Sprintf
(
"--pkgVer=%v"
,
version
))
return
version
}
}
func
gruntBuildArg
(
task
string
)
[]
string
{
args
:=
[]
string
{
task
}
args
=
append
(
args
,
fmt
.
Sprintf
(
"--pkgVer=%v"
,
genPackageVersion
()))
if
pkgArch
!=
""
{
args
=
append
(
args
,
fmt
.
Sprintf
(
"--arch=%v"
,
pkgArch
))
}
...
...
@@ -449,13 +453,7 @@ func setup() {
}
func
printGeneratedVersion
()
{
var
genVersion
string
if
includeBuildId
{
genVersion
=
fmt
.
Sprintf
(
"%v-%v"
,
linuxPackageVersion
,
linuxPackageIteration
)
}
else
{
genVersion
=
version
}
fmt
.
Print
(
genVersion
)
fmt
.
Print
(
genPackageVersion
())
}
func
test
(
pkg
string
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment