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
d963c6d8
Unverified
Commit
d963c6d8
authored
Feb 09, 2021
by
Arve Knudsen
Committed by
GitHub
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drone: Fix deployment image (#31027)
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent
b4d51c9f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
23 deletions
+24
-23
.drone.yml
+18
-18
scripts/build/ci-deploy/Dockerfile
+4
-3
scripts/build/ci-deploy/build-deploy.sh
+1
-1
scripts/lib.star
+1
-1
No files found.
.drone.yml
View file @
d963c6d8
...
@@ -433,7 +433,7 @@ steps:
...
@@ -433,7 +433,7 @@ steps:
-
package
-
package
-
name
:
publish-storybook
-
name
:
publish-storybook
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
gcloud auth activate-service-account --key-file=/tmp/gcpkey.json
-
gcloud auth activate-service-account --key-file=/tmp/gcpkey.json
...
@@ -527,7 +527,7 @@ steps:
...
@@ -527,7 +527,7 @@ steps:
-
end-to-end-tests
-
end-to-end-tests
-
name
:
upload-packages
-
name
:
upload-packages
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition oss
-
./bin/grabpl upload-packages --edition oss
environment
:
environment
:
...
@@ -638,7 +638,7 @@ steps:
...
@@ -638,7 +638,7 @@ steps:
DOCKERIZE_VERSION
:
0.6.1
DOCKERIZE_VERSION
:
0.6.1
-
name
:
publish-packages-oss
-
name
:
publish-packages-oss
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
./bin/grabpl publish-packages --edition oss --gcp-key /tmp/gcpkey.json --build-id ${DRONE_BUILD_NUMBER}
-
./bin/grabpl publish-packages --edition oss --gcp-key /tmp/gcpkey.json --build-id ${DRONE_BUILD_NUMBER}
...
@@ -935,7 +935,7 @@ steps:
...
@@ -935,7 +935,7 @@ steps:
-
test-frontend
-
test-frontend
-
name
:
upload-packages
-
name
:
upload-packages
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition oss
-
./bin/grabpl upload-packages --edition oss
environment
:
environment
:
...
@@ -948,7 +948,7 @@ steps:
...
@@ -948,7 +948,7 @@ steps:
-
postgres-integration-tests
-
postgres-integration-tests
-
name
:
publish-storybook
-
name
:
publish-storybook
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
gcloud auth activate-service-account --key-file=/tmp/gcpkey.json
-
gcloud auth activate-service-account --key-file=/tmp/gcpkey.json
...
@@ -1326,7 +1326,7 @@ steps:
...
@@ -1326,7 +1326,7 @@ steps:
-
test-frontend
-
test-frontend
-
name
:
upload-packages
-
name
:
upload-packages
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition enterprise
-
./bin/grabpl upload-packages --edition enterprise
environment
:
environment
:
...
@@ -1379,7 +1379,7 @@ steps:
...
@@ -1379,7 +1379,7 @@ steps:
-
end-to-end-tests-server-enterprise2
-
end-to-end-tests-server-enterprise2
-
name
:
upload-packages-enterprise2
-
name
:
upload-packages-enterprise2
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-enterprise2
-
./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-enterprise2
environment
:
environment
:
...
@@ -1508,7 +1508,7 @@ steps:
...
@@ -1508,7 +1508,7 @@ steps:
DOCKERIZE_VERSION
:
0.6.1
DOCKERIZE_VERSION
:
0.6.1
-
name
:
publish-packages-oss
-
name
:
publish-packages-oss
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
./bin/grabpl publish-packages --edition oss --gcp-key /tmp/gcpkey.json ${DRONE_TAG}
-
./bin/grabpl publish-packages --edition oss --gcp-key /tmp/gcpkey.json ${DRONE_TAG}
...
@@ -1527,7 +1527,7 @@ steps:
...
@@ -1527,7 +1527,7 @@ steps:
-
initialize
-
initialize
-
name
:
publish-packages-enterprise
-
name
:
publish-packages-enterprise
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
./bin/grabpl publish-packages --edition enterprise --gcp-key /tmp/gcpkey.json ${DRONE_TAG}
-
./bin/grabpl publish-packages --edition enterprise --gcp-key /tmp/gcpkey.json ${DRONE_TAG}
...
@@ -1818,7 +1818,7 @@ steps:
...
@@ -1818,7 +1818,7 @@ steps:
-
test-frontend
-
test-frontend
-
name
:
upload-packages
-
name
:
upload-packages
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition oss --packages-bucket grafana-downloads-test
-
./bin/grabpl upload-packages --edition oss --packages-bucket grafana-downloads-test
environment
:
environment
:
...
@@ -1831,7 +1831,7 @@ steps:
...
@@ -1831,7 +1831,7 @@ steps:
-
postgres-integration-tests
-
postgres-integration-tests
-
name
:
publish-storybook
-
name
:
publish-storybook
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
echo Testing release
-
echo Testing release
environment
:
environment
:
...
@@ -2198,7 +2198,7 @@ steps:
...
@@ -2198,7 +2198,7 @@ steps:
-
test-frontend
-
test-frontend
-
name
:
upload-packages
-
name
:
upload-packages
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition enterprise --packages-bucket grafana-downloads-test
-
./bin/grabpl upload-packages --edition enterprise --packages-bucket grafana-downloads-test
environment
:
environment
:
...
@@ -2251,7 +2251,7 @@ steps:
...
@@ -2251,7 +2251,7 @@ steps:
-
end-to-end-tests-server-enterprise2
-
end-to-end-tests-server-enterprise2
-
name
:
upload-packages-enterprise2
-
name
:
upload-packages-enterprise2
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-test
-
./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-test
environment
:
environment
:
...
@@ -2380,7 +2380,7 @@ steps:
...
@@ -2380,7 +2380,7 @@ steps:
DOCKERIZE_VERSION
:
0.6.1
DOCKERIZE_VERSION
:
0.6.1
-
name
:
publish-packages-oss
-
name
:
publish-packages-oss
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
./bin/grabpl publish-packages --edition oss --gcp-key /tmp/gcpkey.json --deb-db-bucket grafana-testing-aptly-db --deb-repo-bucket grafana-testing-repo --packages-bucket grafana-downloads-test --rpm-repo-bucket grafana-testing-repo --simulate-release v7.3.0-test
-
./bin/grabpl publish-packages --edition oss --gcp-key /tmp/gcpkey.json --deb-db-bucket grafana-testing-aptly-db --deb-repo-bucket grafana-testing-repo --packages-bucket grafana-downloads-test --rpm-repo-bucket grafana-testing-repo --simulate-release v7.3.0-test
...
@@ -2399,7 +2399,7 @@ steps:
...
@@ -2399,7 +2399,7 @@ steps:
-
initialize
-
initialize
-
name
:
publish-packages-enterprise
-
name
:
publish-packages-enterprise
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
printenv GCP_KEY | base64 -d > /tmp/gcpkey.json
-
./bin/grabpl publish-packages --edition enterprise --gcp-key /tmp/gcpkey.json --deb-db-bucket grafana-testing-aptly-db --deb-repo-bucket grafana-testing-repo --packages-bucket grafana-downloads-test --rpm-repo-bucket grafana-testing-repo --simulate-release v7.3.0-test
-
./bin/grabpl publish-packages --edition enterprise --gcp-key /tmp/gcpkey.json --deb-db-bucket grafana-testing-aptly-db --deb-repo-bucket grafana-testing-repo --packages-bucket grafana-downloads-test --rpm-repo-bucket grafana-testing-repo --simulate-release v7.3.0-test
...
@@ -2686,7 +2686,7 @@ steps:
...
@@ -2686,7 +2686,7 @@ steps:
-
test-frontend
-
test-frontend
-
name
:
upload-packages
-
name
:
upload-packages
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition oss
-
./bin/grabpl upload-packages --edition oss
environment
:
environment
:
...
@@ -3044,7 +3044,7 @@ steps:
...
@@ -3044,7 +3044,7 @@ steps:
-
test-frontend
-
test-frontend
-
name
:
upload-packages
-
name
:
upload-packages
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition enterprise
-
./bin/grabpl upload-packages --edition enterprise
environment
:
environment
:
...
@@ -3097,7 +3097,7 @@ steps:
...
@@ -3097,7 +3097,7 @@ steps:
-
end-to-end-tests-server-enterprise2
-
end-to-end-tests-server-enterprise2
-
name
:
upload-packages-enterprise2
-
name
:
upload-packages-enterprise2
image
:
grafana/grafana-ci-deploy:1.3.
0
image
:
grafana/grafana-ci-deploy:1.3.
1
commands
:
commands
:
-
./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-enterprise2
-
./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-enterprise2
environment
:
environment
:
...
...
scripts/build/ci-deploy/Dockerfile
View file @
d963c6d8
FROM
debian:testing-20210111-slim
FROM
debian:testing-20210111-slim
# Use ARG so as not to persist environment variable in image
# Use ARG so as not to persist environment variable in image
ARG
GOVERSION=1.15.
7
\
ARG
GOVERSION=1.15.
8
\
GO_CHECKSUM=
0d142143794721bb63ce6c8a6180c4062bcf8ef4715e7d6d6609f3a8282629b3
\
GO_CHECKSUM=
d3379c32a90fdf9382166f8f48034c459a8cc433730bc9476d39d9082c94583b
\
DEBIAN_FRONTEND=noninteractive
DEBIAN_FRONTEND=noninteractive
ENV
PATH=/usr/local/go/bin:$PATH \
ENV
PATH=/usr/local/go/bin:$PATH \
...
@@ -26,7 +26,8 @@ ARG DEBIAN_FRONTEND=noninteractive \
...
@@ -26,7 +26,8 @@ ARG DEBIAN_FRONTEND=noninteractive \
GOOGLE_SDK_VERSION=325.0.0 \
GOOGLE_SDK_VERSION=325.0.0 \
GOOGLE_SDK_CHECKSUM=374f960c9f384f88b6fc190b268ceac5dcad777301390107af63782bfb5ecbc7
GOOGLE_SDK_CHECKSUM=374f960c9f384f88b6fc190b268ceac5dcad777301390107af63782bfb5ecbc7
RUN
apt update
&&
apt install
-yq
curl python3-pip
&&
pip3 install
-U
awscli crcmod
&&
\
# Need procps for pkill utility, which is used by the build pipeline tool to restart the GPG agent
RUN
apt update
&&
apt install
-yq
curl python3-pip procps
&&
pip3 install
-U
awscli crcmod
&&
\
curl
-fLO
https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-
${
GOOGLE_SDK_VERSION
}
-linux-x86_64
.tar.gz
&&
\
curl
-fLO
https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-
${
GOOGLE_SDK_VERSION
}
-linux-x86_64
.tar.gz
&&
\
echo
"
${
GOOGLE_SDK_CHECKSUM
}
google-cloud-sdk-
${
GOOGLE_SDK_VERSION
}
-linux-x86_64.tar.gz"
| sha256sum
--check
--status
&&
\
echo
"
${
GOOGLE_SDK_CHECKSUM
}
google-cloud-sdk-
${
GOOGLE_SDK_VERSION
}
-linux-x86_64.tar.gz"
| sha256sum
--check
--status
&&
\
tar
xzf google-cloud-sdk-
${
GOOGLE_SDK_VERSION
}
-linux-x86_64
.tar.gz
-C
/opt
&&
\
tar
xzf google-cloud-sdk-
${
GOOGLE_SDK_VERSION
}
-linux-x86_64
.tar.gz
-C
/opt
&&
\
...
...
scripts/build/ci-deploy/build-deploy.sh
View file @
d963c6d8
#!/bin/bash
#!/bin/bash
set
-eo
pipefail
set
-eo
pipefail
_version
=
"1.3.
0
"
_version
=
"1.3.
1
"
_tag
=
"grafana/grafana-ci-deploy:
${
_version
}
"
_tag
=
"grafana/grafana-ci-deploy:
${
_version
}
"
docker build
-t
$_tag
.
docker build
-t
$_tag
.
...
...
scripts/lib.star
View file @
d963c6d8
grabpl_version = '0.5.36'
grabpl_version = '0.5.36'
build_image = 'grafana/build-container:1.3.2'
build_image = 'grafana/build-container:1.3.2'
publish_image = 'grafana/grafana-ci-deploy:1.3.
0
'
publish_image = 'grafana/grafana-ci-deploy:1.3.
1
'
grafana_docker_image = 'grafana/drone-grafana-docker:0.3.2'
grafana_docker_image = 'grafana/drone-grafana-docker:0.3.2'
alpine_image = 'alpine:3.12'
alpine_image = 'alpine:3.12'
windows_image = 'mcr.microsoft.com/windows:1809'
windows_image = 'mcr.microsoft.com/windows:1809'
...
...
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