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
a237a495
Commit
a237a495
authored
Jan 09, 2019
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "build: fixes docker push."
This reverts commit
be57f687
.
parent
be57f687
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
packaging/docker/build.sh
+4
-4
packaging/docker/push_to_docker_hub.sh
+5
-6
No files found.
packaging/docker/build.sh
View file @
a237a495
#!/bin/sh
_grafana_tag
=
${
1
:-}
_docker_repo
=
${
2
:-
grafana
/grafana
}
_grafana_tag
=
$1
# If the tag starts with v, treat this as a official release
if
echo
"
$_grafana_tag
"
|
grep
-q
"^v"
;
then
_grafana_version
=
$(
echo
"
${
_grafana_tag
}
"
| cut
-d
"v"
-f
2
)
_docker_repo
=
${
2
:-
grafana
/grafana
}
else
_grafana_version
=
$_grafana_tag
_docker_repo
=
${
2
:-
grafana
/grafana-dev
}
fi
echo
"Building
${
_docker_repo
}
:
${
_grafana_version
}
"
...
...
@@ -44,6 +45,5 @@ docker_build "arm64v8/debian:stretch-slim" "grafana-latest.linux-arm64.tar.gz" "
if
echo
"
$_grafana_tag
"
|
grep
-q
"^v"
;
then
docker_tag_all
"
${
_docker_repo
}
"
"latest"
else
docker_tag_all
"
${
_docker_repo
}
"
"master"
docker tag
"
${
_docker_repo
}
:
${
_grafana_version
}
grafana/grafana-dev:
${
_grafana_version
}
"
docker_tag_all
"grafana/grafana"
"master"
fi
packaging/docker/push_to_docker_hub.sh
View file @
a237a495
#!/bin/sh
set
-e
_grafana_tag
=
${
1
:-}
_docker_repo
=
${
2
:-
grafana
/grafana
}
_grafana_tag
=
$1
# If the tag starts with v, treat this as a official release
if
echo
"
$_grafana_tag
"
|
grep
-q
"^v"
;
then
_grafana_version
=
$(
echo
"
${
_grafana_tag
}
"
| cut
-d
"v"
-f
2
)
_docker_repo
=
${
2
:-
grafana
/grafana
}
else
_grafana_version
=
$_grafana_tag
_docker_repo
=
${
2
:-
grafana
/grafana-dev
}
fi
export
DOCKER_CLI_EXPERIMENTAL
=
enabled
...
...
@@ -34,13 +35,11 @@ docker_push_all () {
docker manifest push
"
${
repo
}
:
${
tag
}
"
}
docker_push_all
"
${
_docker_repo
}
"
"
${
_grafana_version
}
"
if
echo
"
$_grafana_tag
"
|
grep
-q
"^v"
&&
echo
"
$_grafana_tag
"
|
grep
-vq
"beta"
;
then
echo
"pushing
${
_docker_repo
}
:latest"
docker_push_all
"
${
_docker_repo
}
"
"latest"
docker_push_all
"
${
_docker_repo
}
"
"
${
_grafana_version
}
"
elif
echo
"
$_grafana_tag
"
|
grep
-q
"^v"
&&
echo
"
$_grafana_tag
"
|
grep
-q
"beta"
;
then
docker_push_all
"
${
_docker_repo
}
"
"
${
_grafana_version
}
"
elif
echo
"
$_grafana_tag
"
|
grep
-q
"master"
;
then
docker_push_all
"grafana/grafana"
"master"
docker push
"grafana/grafana-dev:
${
_grafana_version
}
"
fi
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