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
8f8ee6ad
Commit
8f8ee6ad
authored
Aug 11, 2017
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: added docker entrypoint
parent
acc5b4b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
31 deletions
+30
-31
docker_init.sh
.build/docker_init.sh
+4
-0
wercker.yml
wercker.yml
+26
-31
No files found.
.build/docker_init.sh
0 → 100644
View file @
8f8ee6ad
#!/bin/ash
apk add bash curl git openssh
cd
/var/www
node server
wercker.yml
View file @
8f8ee6ad
...
...
@@ -23,45 +23,18 @@ build:
-
script
:
name
:
copy artifacts
code
:
|
ls
cp -LR assets node_modules server config.sample.yml package.json wiki.cmd wiki.js "$WERCKER_OUTPUT_DIR"
deploy-github
:
box
:
node:8
steps
:
-
script
:
name
:
package
code
:
|
tar -chzfv wiki-js.tar.gz * -X .build/.deployexclude
tar -chzfv node_modules.tar.gz node_modules
SEMVER_LAST=`npm show wiki.js version`
chmod +x ./.build/semver_next.sh
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
cp -LR assets node_modules server config.sample.yml package.json wiki.cmd wiki.js "$WERCKER_OUTPUT_DIR/var/wiki"
cp .build/docker_init.sh "$WERCKER_OUTPUT_DIR/init.sh"
deploy-docker-master
:
box
:
node:8-alpine
steps
:
-
script
:
name
:
install dependencies
code
:
|
apk update
apk add bash curl git openssh
-
internal/docker-push
:
username
:
$DOCKER_HUB_USERNAME
password
:
$DOCKER_HUB_PASSWORD
tag
:
latest, master
ports
:
"
3000"
entrypoint
:
node server
entrypoint
:
[
"
ash"
,
"
/init.sh"
]
repository
:
requarks/wiki
registry
:
https://registry.hub.docker.com
...
...
@@ -73,6 +46,28 @@ deploy-docker-dev:
password
:
$DOCKER_HUB_PASSWORD
tag
:
dev
ports
:
"
3000"
entrypoint
:
node server
entrypoint
:
[
"
ash"
,
"
/init.sh"
]
repository
:
requarks/wiki
registry
:
https://registry.hub.docker.com
deploy-github
:
box
:
node:8
steps
:
-
script
:
name
:
package
code
:
|
tar -chzfv wiki-js.tar.gz * -X .build/.deployexclude
tar -chzfv node_modules.tar.gz node_modules
SEMVER_LAST=`npm show wiki.js version`
chmod +x ./.build/semver_next.sh
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
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