mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-12-27 15:36:17 +00:00
Update travis ci settings
This commit is contained in:
parent
4f48fc2066
commit
1c1d81bd49
13
.travis.yml
13
.travis.yml
@ -20,11 +20,11 @@ after_success:
|
|||||||
- echo "FROM nginx:1.13.8-alpine" >> Dockerfile
|
- echo "FROM nginx:1.13.8-alpine" >> Dockerfile
|
||||||
- echo "COPY _book /usr/share/nginx/html" >> Dockerfile
|
- echo "COPY _book /usr/share/nginx/html" >> Dockerfile
|
||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
- docker build -t dockerpracticecn/docker_practice .
|
- docker build -t dockerpracticecn/docker_practice:us-en .
|
||||||
- docker run -dit --rm -p 4000:80 dockerpracticecn/docker_practice
|
- docker run -dit --rm -p 4000:80 dockerpracticecn/docker_practice:us-en
|
||||||
- sleep 5
|
- sleep 5
|
||||||
- curl 127.0.0.1:4000
|
- curl 127.0.0.1:4000
|
||||||
- docker push dockerpracticecn/docker_practice
|
- docker push dockerpracticecn/docker_practice:us-en
|
||||||
- cd _book
|
- cd _book
|
||||||
- git init
|
- git init
|
||||||
- git remote add origin "$REPO"
|
- git remote add origin "$REPO"
|
||||||
@ -35,7 +35,7 @@ after_success:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- DEPLOY_BRANCH: pages
|
- DEPLOY_BRANCH: pages-us-en
|
||||||
# - DEPLOY_BRANCH: legacy-pages
|
# - DEPLOY_BRANCH: legacy-pages
|
||||||
- REPO: git@github.com:yeasy/docker_practice.git
|
- REPO: git@github.com:yeasy/docker_practice.git
|
||||||
|
|
||||||
@ -45,6 +45,7 @@ addons:
|
|||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- english
|
||||||
- dev
|
# - master
|
||||||
|
# - dev
|
||||||
# - docker-legacy
|
# - docker-legacy
|
||||||
|
Loading…
Reference in New Issue
Block a user