Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-CI
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
twb
gitlab-CI
Commits
5d1c74ea
Commit
5d1c74ea
authored
May 09, 2019
by
汤文兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加测试通过最后构建镜像
parent
8f4f1692
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
.gitlab-ci.yml
+3
-9
Dockerfile
+8
-0
No files found.
.gitlab-ci.yml
View file @
5d1c74ea
...
@@ -4,22 +4,16 @@
...
@@ -4,22 +4,16 @@
# you can delete this line if you're not using Docker
# you can delete this line if you're not using Docker
#image: busybox:latest
#image: busybox:latest
before_script
:
-
echo "Before script section"
-
echo "For example you might run an update here or install a build dependency"
-
echo "Or perhaps you might print out some debugging details"
after_script
:
-
echo "After script section"
-
echo "For example you might do some cleanup here"
test
:
test
:
stage
:
build
stage
:
build
only
:
master
script
:
script
:
-
echo "Do your build here"
-
echo "Do your build here"
-
docker run --rm -w /data -v $PWD:/data node:8.11.2-alpine sh -c "yarn && npm test"
-
docker run --rm -w /data -v $PWD:/data node:8.11.2-alpine sh -c "yarn && npm test"
deploy
:
deploy
:
stage
:
deploy
stage
:
deploy
only
:
master
script
:
script
:
-
echo "Do your deploy here"
-
echo "Do your deploy here"
-
docker build -t koa-test:1.0 .
Dockerfile
0 → 100644
View file @
5d1c74ea
FROM
node:8.11.2-alpine
WORKDIR
/data
COPY
./* ./
RUN
ls
-la
/data/
*
CMD
["node","start.js"]
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