Commit 5d1c74ea by 汤文兵

添加测试通过最后构建镜像

parent 8f4f1692
......@@ -4,22 +4,16 @@
# you can delete this line if you're not using Docker
#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:
stage: build
only: master
script:
- echo "Do your build here"
- docker run --rm -w /data -v $PWD:/data node:8.11.2-alpine sh -c "yarn && npm test"
deploy:
stage: deploy
only: master
script:
- echo "Do your deploy here"
- docker build -t koa-test:1.0 .
FROM node:8.11.2-alpine
WORKDIR /data
COPY ./* ./
RUN ls -la /data/*
CMD ["node","start.js"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment