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
242db641
Unverified
Commit
242db641
authored
Apr 08, 2020
by
Stephanie Closson
Committed by
GitHub
Apr 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Learnings from latest automated git publish. Small tweaks (#23440)
parent
008bee8f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
packages/grafana-toolkit/docker/grafana-plugin-ci/test/docker-compose.yml
+2
-0
packages/grafana-toolkit/docker/grafana-plugin-ci/test/start.sh
+6
-0
packages/grafana-toolkit/src/cli/tasks/plugin.utils.ts
+5
-3
No files found.
packages/grafana-toolkit/docker/grafana-plugin-ci/test/docker-compose.yml
View file @
242db641
...
...
@@ -6,3 +6,5 @@ services:
volumes
:
-
../scripts:/home/circleci/scripts
-
../install:/home/circleci/install
-
${HOME}/.ssh:/root/.ssh
-
../../..:/home/circleci/grafana-toolkit
packages/grafana-toolkit/docker/grafana-plugin-ci/test/start.sh
View file @
242db641
#!/bin/bash
function
finish
{
echo
"Exiting and cleaning up docker image"
docker-compose down
}
trap
finish EXIT
# Enter the docker container
docker-compose run citest bash
-c
"cd /home/circleci; exec bash --login -i"
packages/grafana-toolkit/src/cli/tasks/plugin.utils.ts
View file @
242db641
...
...
@@ -69,10 +69,11 @@ const prepareRelease = useSpinner<any>('Preparing release', async ({ dryrun, ver
[
'git'
,
[
'config'
,
'user.email'
,
DEFAULT_EMAIL_ADDRESS
]],
[
'git'
,
[
'config'
,
'user.name'
,
DEFAULT_USERNAME
]],
await
checkoutBranch
(
`release-
${
pluginJson
.
info
.
version
}
`
),
[
'
cp'
,
[
'-rf'
,
distContentDir
,
'dist'
]
],
[
'
git'
,
[
'add'
,
'--force'
,
distDir
],
{
dryrun
}
],
[
'
/bin/rm'
,
[
'-rf'
,
'dist'
],
{
dryrun
}
],
[
'
mv'
,
[
'-v'
,
distContentDir
,
'dist'
]
],
[
'git'
,
[
'add'
,
'--force'
,
'dist'
],
{
dryrun
}],
[
'/bin/rm'
,
[
'-rf'
,
'src'
],
{
enterprise
:
true
}],
[
'git'
,
[
'rm'
,
'-rf'
,
'src'
],
{
enterprise
:
true
}],
[
'git'
,
[
'commit'
,
'-m'
,
`automated release
${
pluginJson
.
info
.
version
}
[skip ci]`
],
...
...
@@ -81,8 +82,9 @@ const prepareRelease = useSpinner<any>('Preparing release', async ({ dryrun, ver
okOnError
:
[
/nothing to commit/g
,
/nothing added to commit/g
,
/no changes added to commit/g
],
},
],
[
'git'
,
[
'tag'
,
'-f'
,
pluginJson
.
info
.
version
]],
[
'git'
,
[
'push'
,
'-f'
,
'origin'
,
`release-
${
pluginJson
.
info
.
version
}
`
],
{
dryrun
}],
[
'git'
,
[
'tag'
,
'-f'
,
`v
${
pluginJson
.
info
.
version
}
`
]],
[
'git'
,
[
'push'
,
'-f'
,
'origin'
,
`v
${
pluginJson
.
info
.
version
}
`
]],
];
for
(
let
line
of
githubPublishScript
)
{
...
...
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