Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
ae2482d9
Commit
ae2482d9
authored
Jul 23, 2017
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: updated wercker definition
parent
1150bde2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
1 deletion
+79
-1
semver_next.sh
.build/semver_next.sh
+52
-0
data.yml
server/app/data.yml
+3
-0
wercker.yml
wercker.yml
+24
-1
No files found.
.build/semver_next.sh
0 → 100644
View file @
ae2482d9
#!/bin/bash
# Increment a version string using Semantic Versioning (SemVer) terminology.
# Parse command line options.
while
getopts
":Mmp"
Option
do
case
$Option
in
M
)
major
=
true
;;
m
)
minor
=
true
;;
p
)
patch
=
true
;;
esac
done
shift
$((
$OPTIND
-
1
))
version
=
$1
# Build array from version string.
a
=(
${
version
//./
}
)
# If version string is missing or has the wrong number of members, show usage message.
if
[
${#
a
[@]
}
-ne
3
]
then
echo
"usage:
$(
basename
$0
)
[-Mmp] major.minor.patch"
exit
1
fi
# Increment version numbers as requested.
if
[
!
-z
$major
]
then
((
a[0]++
))
a[1]
=
0
a[2]
=
0
fi
if
[
!
-z
$minor
]
then
((
a[1]++
))
a[2]
=
0
fi
if
[
!
-z
$patch
]
then
((
a[2]++
))
fi
echo
"
${
a
[0]
}
.
${
a
[1]
}
.
${
a
[2]
}
"
server/app/data.yml
View file @
ae2482d9
...
...
@@ -92,6 +92,9 @@ langs:
id
:
zh
name
:
Chinese - 中文
-
id
:
nl
name
:
Dutch - Nederlands
-
id
:
fr
name
:
French - Français
-
...
...
wercker.yml
View file @
ae2482d9
...
...
@@ -15,7 +15,8 @@ build:
name
:
build
code
:
yarn run build
-
npm-test
deploy
:
deploy-github
:
steps
:
-
script
:
name
:
package
...
...
@@ -23,3 +24,25 @@ deploy:
tar -czf wiki-js.tar.gz * -X .build/.deployexclude
yarn install --production --ignore-scripts --prefer-offline
tar -czf node_modules.tar.gz node_modules
SEMVER_LAST=`npm show wiki.js version`
SEMVER_NEXT=`./.build/semver_next.sh -p $SEMVER_LAST`
-
github-create-release
:
token
:
$GITHUB_TOKEN
tag
:
"
v${SEMVER_NEXT}"
prerelease
:
true
-
github-upload-asset
:
token
:
$GITHUB_TOKEN
file
:
wiki-js.tar.gz
-
github-upload-asset
:
token
:
$GITHUB_TOKEN
file
:
node_modules.tar.gz
deploy-docker
:
steps
:
-
internal/docker-push
:
username
:
$DOCKER_HUB_USERNAME
password
:
$DOCKER_HUB_PASSWORD
tag
:
latest
ports
:
"
3000"
entrypoint
:
node server
repository
:
requarks/wiki
registry
:
https://registry.hub.docker.com
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