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
f7993db7
Commit
f7993db7
authored
Jan 24, 2017
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tech(build): installs yarn in build image
parent
66fa1283
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
13 deletions
+20
-13
circle.yml
+7
-6
scripts/build/Dockerfile
+3
-0
scripts/build/build.sh
+10
-6
scripts/build/deploy.sh
+0
-1
No files found.
circle.yml
View file @
f7993db7
...
@@ -37,6 +37,7 @@ deployment:
...
@@ -37,6 +37,7 @@ deployment:
-
pip install awscli
-
pip install awscli
-
./scripts/build/build_container.sh
-
./scripts/build/build_container.sh
-
./scripts/build/deploy.sh
-
./scripts/build/deploy.sh
#- ./scripts/build/sign_packages.sh
#- aws s3 sync ./dist s3://$BUCKET_NAME
#- aws s3 sync ./dist s3://$BUCKET_NAME
#- ./scripts/trigger_grafana_docker_build.sh ${TRIGGER_GRAFANA_DOCKER_CIRCLECI_TOKEN}
#- ./scripts/trigger_grafana_docker_build.sh ${TRIGGER_GRAFANA_DOCKER_CIRCLECI_TOKEN}
gh_tag
:
gh_tag
:
...
@@ -44,10 +45,10 @@ deployment:
...
@@ -44,10 +45,10 @@ deployment:
owner
:
grafana
owner
:
grafana
commands
:
commands
:
-
echo lets release stuff!
-
echo lets release stuff!
-
pip install awscli
-
./scripts/build/build_container.sh
-
./scripts/build/deploy.sh
#- ./scripts/build/sign_packages.sh
#- ./scripts/build/sign_packages.sh
# master:
#- aws s3 sync ./dist s3://$BUCKET_NAME
# branch: master
#- ./scripts/trigger_grafana_docker_build.sh ${TRIGGER_GRAFANA_DOCKER_CIRCLECI_TOKEN}
# owner: grafana
# commands:
# - ./scripts/trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
# - ./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN}
scripts/build/Dockerfile
View file @
f7993db7
...
@@ -21,6 +21,9 @@ RUN /bin/bash -l -c "rvm use 2.1.9 --default"
...
@@ -21,6 +21,9 @@ RUN /bin/bash -l -c "rvm use 2.1.9 --default"
RUN
curl
--silent
--location
https://rpm.nodesource.com/setup_6.x | bash -
RUN
curl
--silent
--location
https://rpm.nodesource.com/setup_6.x | bash -
RUN
yum install
-y
nodejs
--nogpgcheck
RUN
yum install
-y
nodejs
--nogpgcheck
RUN
wget https://dl.yarnpkg.com/rpm/yarn.repo
-O
/etc/yum.repos.d/yarn.repo
RUN
yum install
-y
yarn
--nogpgcheck
ENV
GOLANG_VERSION 1.7.4
ENV
GOLANG_VERSION 1.7.4
RUN
wget https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz
RUN
wget https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz
...
...
scripts/build/build.sh
View file @
f7993db7
...
@@ -10,14 +10,18 @@ REPO_PATH=$GOPATH/src/github.com/grafana/grafana
...
@@ -10,14 +10,18 @@ REPO_PATH=$GOPATH/src/github.com/grafana/grafana
mkdir
-p
/go/src/github.com/grafana
mkdir
-p
/go/src/github.com/grafana
cd
/go/src/github.com/grafana
cd
/go/src/github.com/grafana
echo
"CIRCLE BRANCH:
${
CIRCLE_BRANCH
}
"
if
[
-n
"
${
CIRCLE_TAG
}
"
]
;
then
echo
"Building from tag
${
CIRCLE_TAG
}
"
git clone
--depth
1 https://github.com/grafana/grafana.git
-b
$CIRCLE_BRANCH
git clone
--depth
1 https://github.com/grafana/grafana.git
-b
$CIRCLE_BRANCH
cd
$REPO_PATH
cd
$REPO_PATH
else
echo
"Building from branch
${
CIRCLE_BRANCH
}
"
git clone
--depth
1 https://github.com/grafana/grafana.git
cd
$REPO_PATH
git checkout
$CIRCLE_TAG
fi
go run build.go build
go run build.go build
npm install
-g
yarn
yarn install
--pure-lockfile
yarn install
--pure-lockfile
source
/etc/profile.d/rvm.sh
source
/etc/profile.d/rvm.sh
...
...
scripts/build/deploy.sh
View file @
f7993db7
...
@@ -4,7 +4,6 @@ mkdir -p dist
...
@@ -4,7 +4,6 @@ mkdir -p dist
echo
"Circle branch:
${
CIRCLE_BRANCH
}
"
echo
"Circle branch:
${
CIRCLE_BRANCH
}
"
echo
"Circle tag:
${
CIRCLE_TAG
}
"
echo
"Circle tag:
${
CIRCLE_TAG
}
"
echo
"dist:
$(
pwd
)
/dist"
docker run
-i
-t
--name
gfbuild
\
docker run
-i
-t
--name
gfbuild
\
-v
$(
pwd
)
/dist:/tmp/dist
\
-v
$(
pwd
)
/dist:/tmp/dist
\
-e
"CIRCLE_BRANCH=
${
CIRCLE_BRANCH
}
"
\
-e
"CIRCLE_BRANCH=
${
CIRCLE_BRANCH
}
"
\
...
...
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