update
continuous-integration/drone/push Build is failing Details

master
wanggang 4 years ago
parent bc69613d8c
commit b2edc1508a

@ -21,8 +21,11 @@ steps:
password: password:
from_secret: ssh_password from_secret: ssh_password
script: script:
- env
- apt -y install git - apt -y install git
- echo ${DRONE_REPO_BRANCH} - mkdir -p ~/publish/cicd && cd $_
- echo ${DRONE_COMMIT_SHA} - git init
#- mkdir -p ~/publish/docker-lan && cd $_ - git remoteadd origin http://10.10.14.176:3000/examples/DockerComposeCICD.git
- git fetch origin +refs/heads/master
- git checkout ${DRONE_COMMIT_SHA} -b ${DRONE_REPO_BRANCH}
#- ./start.sh #- ./start.sh

@ -1,6 +1,11 @@
# gitea + drone + drone runner + registry 作为 git 服务器,自动测试、构建和打包镜像并发布到私有仓库 # gitea + drone + drone runner + registry 作为 git 服务器,自动测试、构建和打包镜像并发布到私有仓库
## docker compose 配置网络后才能访问到宿主机 ip ## gitea ssh 密钥
1.执行sh-keygen -t ed25519 -C "youname@domain.com" 生成:%USERNAME%/.ssh/id_ed25519.pub
2.配置http://10.10.14.176:3000/user/settings/keys 添加id_ed25519.pub内容作为key
## docker compose 显式配置网络后才能访问到宿主机 ip
``` ```
networks: networks:
default: default:

@ -60,10 +60,11 @@ services:
- USER_GID=1000 - USER_GID=1000
ports: ports:
- 3000:3000 - 3000:3000
- 222:22 - ${IP}:222:22
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

Loading…
Cancel
Save