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
c3e23d75
Commit
c3e23d75
authored
Dec 17, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: rpm repo deploy.
parent
a26a10cf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
2 deletions
+51
-2
.circleci/config.yml
+1
-1
scripts/build/update_repo/sign-deb-repo.sh
+0
-0
scripts/build/update_repo/sign-rpm-repo.sh
+7
-0
scripts/build/update_repo/update-deb.sh
+1
-1
scripts/build/update_repo/update-rpm.sh
+42
-0
No files found.
.circleci/config.yml
View file @
c3e23d75
...
...
@@ -426,7 +426,7 @@ jobs:
command
:
'
./scripts/build/update_repo/update-deb.sh
"oss"
"$GPG_KEY_PASSWORD"'
-
run
:
name
:
Update RPM repository
command
:
'
ls
'
command
:
'
./scripts/build/update_repo/update-rpm.sh
"oss"
"$GPG_KEY_PASSWORD"
'
workflows
:
version
:
2
...
...
scripts/build/update_repo/sign-repo.sh
→
scripts/build/update_repo/sign-
deb-
repo.sh
View file @
c3e23d75
File moved
scripts/build/update_repo/sign-rpm-repo.sh
0 → 100755
View file @
c3e23d75
#!/usr/bin/env expect
set
password
[
lindex
$argv
0]
spawn gpg
--detach-sign
--armor
/rpm-repo/repodata/repomd.xml
expect
"Enter passphrase: "
send
--
"
$password
\r
"
expect eof
scripts/build/update_repo/update-deb.sh
View file @
c3e23d75
...
...
@@ -29,7 +29,7 @@ aptly repo add grafana ./dist
echo
"allow-loopback-pinentry"
>
~/.gnupg/gpg-agent.conf
echo
"pinentry-mode loopback"
>
~/.gnupg/gpg.conf
./scripts/build/update_repo/sign-repo.sh
"
$GPG_PASS
"
./scripts/build/update_repo/sign-
deb-
repo.sh
"
$GPG_PASS
"
# Update the repo and db on gcp
gsutil
-m
rsync
-r
-d
/deb-repo/db gs://grafana-aptly-db/repo-db
...
...
scripts/build/update_repo/update-rpm.sh
View file @
c3e23d75
#!/usr/bin/env bash
RELEASE_TYPE
=
"
${
1
:-}
"
GPG_PASS
=
"
${
2
:-}
"
if
[
-z
"
$RELEASE_TYPE
"
-o
-z
"
$GPG_PASS
"
]
;
then
echo
"Both RELEASE_TYPE (arg 1) and GPG_PASS (arg 2) has to be set"
exit
1
fi
set
-e
# Setup environment
mkdir
-p
/rpm-repo
# Download the database
gsutil
-m
rsync
-r
"gs://grafana-repo/
$RELEASE_TYPE
/rpm"
/rpm-repo
# Add the new release to the repo
cp ./dist/
*
.rpm /rpm-repo
cd
/rpm-repo
createrepo
.
# Setup signing and sign the repo
echo
"allow-loopback-pinentry"
>
~/.gnupg/gpg-agent.conf
echo
"pinentry-mode loopback"
>
~/.gnupg/gpg.conf
./scripts/build/update_repo/sign-rpm-repo.sh
"
$GPG_PASS
"
# Update the repo and db on gcp
gsutil
-m
rsync
-r
-d
/rpm-repo
"gs://grafana-repo/
$RELEASE_TYPE
/rpm"
# usage:
# [grafana]
# name=grafana
# baseurl=https://grafana-repo.storage.googleapis.com/oss/rpm
# repo_gpgcheck=1
# enabled=1
# gpgcheck=1
# gpgkey=https://grafana-repo.storage.googleapis.com/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana
# sslverify=1
# sslcacert=/etc/pki/tls/certs/ca-bundle.crt# later:
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