Skip to content

Commit fb162df

Browse files
committed
remove project travis ci
Signed-off-by: Kang Huaishuai <[email protected]>
1 parent cc72642 commit fb162df

File tree

6 files changed

+51
-76
lines changed

6 files changed

+51
-76
lines changed

.github/CODEOWNERS

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
/.editorconfig/ @khs1994
2929
/.gitattributes @khs1994
3030
/.gitignore @khs1994
31-
/.travis.yml @khs1994
3231
/_config.yml @yeasy @khs1994
3332
/book.json @yeasy @khs1994
3433
/CHANGELOG.md @yeasy @khs1994

.github/workflows/ci.yaml

+45-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,58 @@ name: CI
77

88
jobs:
99
build:
10-
name: Build GitBook
10+
name: Build
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@master
1414
with:
1515
fetch-depth: 2
16-
- name: Build
16+
- name: Build Gitbook
1717
uses: docker://yeasy/docker_practice
1818
with:
1919
args: build
20+
- name: Build Gitbook Docker Image
21+
if: github.repository == 'docker-practice/docker_practice'
22+
run: |
23+
sudo chmod -R 777 _book
24+
echo "FROM nginx:alpine" >> Dockerfile
25+
echo "COPY _book /usr/share/nginx/html" >> Dockerfile
26+
echo "COPY .docker/docker-entrypoint.sh /" >> Dockerfile
27+
echo "ENTRYPOINT [\"/docker-entrypoint.sh\"]" >> Dockerfile
28+
29+
export VCS_REF=`git rev-parse --short HEAD`
30+
31+
docker build \
32+
-t dockerpracticesig/docker_practice \
33+
-t dockerpracticesig/docker_practice:gitbook \
34+
--label org.opencontainers.image.revision=$VCS_REF \
35+
--label org.opencontainers.image.source="https://github.com/yeasy/docker_practice" \
36+
--label maintainer="https://github.com/docker-practice" \
37+
.
38+
39+
docker run -d --rm -p 4000:80 dockerpracticesig/docker_practice
40+
41+
sleep 5
42+
curl 127.0.0.1:4000
43+
44+
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
45+
docker push dockerpracticesig/docker_practice
46+
docker push dockerpracticesig/docker_practice:gitbook
47+
env:
48+
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
49+
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
50+
- name: Upload Gitbook dist
51+
uses: docker://pcit/pages
52+
if: github.repository == 'docker-practice/docker_practice'
53+
env:
54+
PCIT_EMAIL: [email protected]
55+
PCIT_GIT_TOKEN: ${{ secrets.PCIT_GIT_TOKEN }}
56+
PCIT_GIT_URL: github.com/docker-practice/zh-cn
57+
PCIT_KEEP_HISTORY: "true"
58+
PCIT_LOCAL_DIR: _book
59+
PCIT_MESSAGE: Build from yeasy/docker_practice@${{github.sha}}
60+
PCIT_TARGET_BRANCH: master
61+
PCIT_USERNAME: khs1994
2062
- name: vuepress
2163
run: |
2264
sudo rm -rf _book
@@ -73,7 +115,7 @@ jobs:
73115
PCIT_GIT_URL: e.coding.net/dpsigs/docker_practice
74116
PCIT_KEEP_HISTORY: "true"
75117
PCIT_LOCAL_DIR: .vuepress/dist
76-
PCIT_MESSAGE: Sync from yeasy/docker_practice@${{github.sha}} by PCIT
118+
PCIT_MESSAGE: Build from yeasy/docker_practice@${{github.sha}}
77119
PCIT_TARGET_BRANCH: master
78120
PCIT_USERNAME: ptt0xjqzbke3
79121
- name: Build vuepress docker image

.travis.yml

-65
This file was deleted.

.travis/id_rsa.enc

-1.64 KB
Binary file not shown.

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
# Docker — 从入门到实践
22

3-
[![](https://img.shields.io/github/stars/yeasy/docker_practice.svg?style=social&label=Stars)](https://github.com/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) [![](https://img.shields.io/badge/Based-Docker%20CE%20v20.10-blue.svg)](https://github.com/docker/docker-ce) [![](https://img.shields.io/badge/Docker%20%E6%8A%80%E6%9C%AF%E5%85%A5%E9%97%A8%E4%B8%8E%E5%AE%9E%E6%88%98-jd.com-red.svg)][1]
3+
[![](https://img.shields.io/github/stars/yeasy/docker_practice.svg?style=social&label=Stars)](https://github.com/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/badge/Based-Docker%20CE%20v20.10-blue.svg)](https://github.com/docker/docker-ce) [![](https://img.shields.io/badge/Docker%20%E6%8A%80%E6%9C%AF%E5%85%A5%E9%97%A8%E4%B8%8E%E5%AE%9E%E6%88%98-jd.com-red.svg)][1]
44

55
**v1.3.0**
66

7-
| 语言 | 构建状态 | - |
8-
| :------------- | :------------- | :--- |
9-
| [zh-hans](https://github.com/yeasy/docker_practice) | [![](https://travis-ci.org/yeasy/docker_practice.svg?branch=master)](https://travis-ci.org/yeasy/docker_practice)| [阅读](https://vuepress.mirror.docker-practice.com/) |
10-
| [us-en](https://github.com/yeasy/docker_practice/tree/english) | [![](https://travis-ci.org/yeasy/docker_practice.svg?branch=english)](https://travis-ci.org/yeasy/docker_practice)| [阅读](https://docker_practice.gitee.io/us-en) |
11-
| [zh-hant](https://github.com/yeasy/docker_practice/tree/zh-Hant) | [![](https://travis-ci.org/yeasy/docker_practice.svg?branch=zh-hant)](https://travis-ci.org/yeasy/docker_practice)| [阅读](https://docker_practice.gitee.io/zh-hant) |
7+
| 语言 | - |
8+
| :------------- | :--- |
9+
| [简体中文](https://github.com/yeasy/docker_practice) | [阅读](https://vuepress.mirror.docker-practice.com/) |
10+
| [us-en](https://github.com/yeasy/docker_practice/tree/english) | [阅读](https://docker_practice.gitee.io/us-en) |
1211

1312
[Docker](https://www.docker.com) 是个划时代的开源项目,它彻底释放了计算虚拟化的威力,极大提高了应用的维护效率,降低了云计算应用开发的成本!使用 Docker,可以让应用的部署、测试和分发都变得前所未有的高效和轻松!
1413

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121

2222
# $ docker run -it --rm -p 4000:80 dockerpracticesig/docker_practice
2323
offline:
24-
# this image build by travis ci
24+
# this image build by GitHub Action
2525
image: dockerpracticesig/docker_practice
2626
ports:
2727
- 4000:80

0 commit comments

Comments
 (0)