test
continuous-integration/drone/push Build is passing Details

master
wanggang 4 years ago
parent cf6f11abd2
commit 361cf2d407

@ -21,7 +21,7 @@ steps:
username: root username: root
password: password:
from_secret: ssh_password from_secret: ssh_password
target: /root/publish/cicd target: ~/publish/cicd/~/publish
source: docker-compose.yml source: docker-compose.yml
- name: restart - name: restart
image: appleboy/drone-ssh:linux-amd64 image: appleboy/drone-ssh:linux-amd64
@ -32,7 +32,7 @@ steps:
password: password:
from_secret: ssh_password from_secret: ssh_password
script: script:
- cd ~/publish/cicd - cd ~/publish/cicd/publish
- ./start.sh - ./start.sh
# - apt -y install git # - apt -y install git
# - mkdir -p ~/publish/cicd && cd $_ # - mkdir -p ~/publish/cicd && cd $_

@ -15,7 +15,7 @@ services:
- 9000:9000 - 9000:9000
volumes: volumes:
- ${DOCKER_SOCK}:/var/run/docker.sock - ${DOCKER_SOCK}:/var/run/docker.sock
- ./data/portainer:/data - ../data/portainer:/data
netdata: netdata:
image: netdata/netdata:v1.30.0 image: netdata/netdata:v1.30.0
restart: always restart: always
@ -39,7 +39,7 @@ services:
ports: ports:
- 5000:5000 #http://localhost:5000/v2/_catalog - 5000:5000 #http://localhost:5000/v2/_catalog
volumes: volumes:
- ./data/registry:/var/lib/registry - ../data/registry:/var/lib/registry
docker-registry-ui: docker-registry-ui:
image: joxit/docker-registry-ui:2.0 image: joxit/docker-registry-ui:2.0
restart: always restart: always
@ -64,9 +64,8 @@ services:
volumes: volumes:
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /home/git/.ssh/:/data/git/.ssh
- ./conf/gitea/custom:/data/gitea/custom - ./conf/gitea/custom:/data/gitea/custom
- ./data/gitea:/data - ../data/gitea:/data
drone: #https://docs.drone.io/server/provider/gitea/ https://github.com/drone/drone drone: #https://docs.drone.io/server/provider/gitea/ https://github.com/drone/drone
image: drone/drone:2.0.1 image: drone/drone:2.0.1
restart: always restart: always
@ -82,7 +81,7 @@ services:
- DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO} - DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO}
- DRONE_USER_CREATE=username:root,machine:false,admin:true,token:55f24eb3d61ef6ac5e83d550178638dc - DRONE_USER_CREATE=username:root,machine:false,admin:true,token:55f24eb3d61ef6ac5e83d550178638dc
volumes: volumes:
- ./data/drone:/data - ../data/drone:/data
depends_on: depends_on:
- gitea - gitea
- registry - registry

Loading…
Cancel
Save