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
3f08a4d8
Commit
3f08a4d8
authored
Aug 11, 2017
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: use docker scratch image
parent
c53b9c1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
wercker.yml
wercker.yml
+13
-10
No files found.
wercker.yml
View file @
3f08a4d8
box
:
node:8-alpine
build
:
box
:
node:8-alpine
steps
:
-
script
:
name
:
install dependencies
...
...
@@ -15,14 +15,21 @@ build:
name
:
build
code
:
yarn run build
-
npm-test
-
script
:
name
:
purge dev files
code
:
|
yarn install --production --ignore-scripts --prefer-offline
-
script
:
name
:
copy artifacts
code
:
cp assets server config.sample.yml package.json wiki.cmd wiki.js "$WERCKER_OUTPUT_DIR"
deploy-github
:
box
:
node:8-alpine
steps
:
-
script
:
name
:
package
code
:
|
tar -chzfv wiki-js.tar.gz * -X .build/.deployexclude
yarn install --production --ignore-scripts --prefer-offline
tar -chzfv node_modules.tar.gz node_modules
SEMVER_LAST=`npm show wiki.js version`
chmod +x ./.build/semver_next.sh
...
...
@@ -39,14 +46,9 @@ deploy-github:
file
:
node_modules.tar.gz
deploy-docker-master
:
box
:
node:8-alpine
steps
:
-
script
:
name
:
remove dev dependencies
code
:
|
yarn install --production --ignore-scripts --prefer-offline
apk update
apk del build-base yarn
-
internal/docker-push
:
-
internal/docker-scratch-push
:
username
:
$DOCKER_HUB_USERNAME
password
:
$DOCKER_HUB_PASSWORD
tag
:
latest, master
...
...
@@ -56,8 +58,9 @@ deploy-docker-master:
registry
:
https://registry.hub.docker.com
deploy-docker-dev
:
box
:
node:8-alpine
steps
:
-
internal/docker-push
:
-
internal/docker-
scratch-
push
:
username
:
$DOCKER_HUB_USERNAME
password
:
$DOCKER_HUB_PASSWORD
tag
:
dev
...
...
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