parent
93f8b01d32
commit
3a8c201fbe
|
@ -0,0 +1,36 @@
|
||||||
|
language: bash
|
||||||
|
sudo: required
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
before_install:
|
||||||
|
- openssl aes-256-cbc -K $encrypted_6cc8cff04075_key -iv $encrypted_6cc8cff04075_iv
|
||||||
|
-in .travis/id_rsa.enc -out ~/.ssh/id_rsa -d
|
||||||
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
|
- export TZ='Asia/Shanghai'
|
||||||
|
- date
|
||||||
|
- git config --global user.name "khs1994"
|
||||||
|
- git config --global user.email "khs1994@khs1994.com"
|
||||||
|
script:
|
||||||
|
- docker run -it --rm -v $PWD:/srv/gitbook-src yeasy/docker_practice build
|
||||||
|
after_success:
|
||||||
|
- sudo chmod -R 777 _book
|
||||||
|
- cd _book
|
||||||
|
- git init
|
||||||
|
- git remote add origin "$REPO"
|
||||||
|
- git add .
|
||||||
|
- COMMIT=`date "+%F %T"`
|
||||||
|
- git commit -m "Travis CI Site updated $COMMIT"
|
||||||
|
- git push -f origin master:"$DEPLOY_BRANCH"
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- DEPLOY_BRANCH: pages
|
||||||
|
# - DEPLOY_BRANCH: legacy-pages
|
||||||
|
- REPO: git@github.com:yeasy/docker_practice.git
|
||||||
|
addons:
|
||||||
|
ssh_known_hosts:
|
||||||
|
- github.com
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
- dev
|
||||||
|
# - docker-legacy
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
# Docker — 从入门到实践
|
# Docker — 从入门到实践
|
||||||
|
|
||||||
[![](https://img.shields.io/github/stars/yeasy/docker_practice.svg?style=social&label=Stars)](https://github.com/yeasy/docker_practice) [![](https://img.shields.io/docker/pulls/yeasy/docker_practice.svg)](https://store.docker.com/community/images/yeasy/docker_practice) [![](https://img.shields.io/github/release/yeasy/docker_practice/all.svg)](https://github.com/yeasy/docker_practice/releases)
|
[![](https://img.shields.io/github/stars/yeasy/docker_practice.svg?style=social&label=Stars)](https://github.com/yeasy/docker_practice) [![](https://img.shields.io/docker/pulls/yeasy/docker_practice.svg)](https://store.docker.com/community/images/yeasy/docker_practice) [![](https://travis-ci.org/yeasy/docker_practice.svg?branch=master)](https://travis-ci.org/yeasy/docker_practice) [![](https://img.shields.io/github/release/yeasy/docker_practice/all.svg)](https://github.com/yeasy/docker_practice/releases)
|
||||||
|
|
||||||
0.9-rc1(2017-11-30)
|
0.9-rc1(2017-11-30)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
|
|
||||||
docker_practice:
|
server:
|
||||||
build: ./.travis
|
# build: ./.travis
|
||||||
image: yeasy/docker_practice:latest
|
image: yeasy/docker_practice:latest
|
||||||
ports:
|
ports:
|
||||||
- 4000:4000
|
- 4000:4000
|
||||||
|
@ -17,3 +17,18 @@ services:
|
||||||
- .travis/conf.d/default.conf:/etc/nginx/conf.d/default.conf
|
- .travis/conf.d/default.conf:/etc/nginx/conf.d/default.conf
|
||||||
ports:
|
ports:
|
||||||
- 4000:4000
|
- 4000:4000
|
||||||
|
|
||||||
|
build:
|
||||||
|
image: yeasy/docker_practice:latest
|
||||||
|
volumes:
|
||||||
|
- ./:/srv/gitbook-src
|
||||||
|
command: build
|
||||||
|
|
||||||
|
development:
|
||||||
|
build: ./.travis
|
||||||
|
image: yeasy/docker_practice:development
|
||||||
|
ports:
|
||||||
|
- 4000:4000
|
||||||
|
volumes:
|
||||||
|
- ./:/srv/gitbook-src
|
||||||
|
command: server
|
||||||
|
|
Loading…
Reference in New Issue