|
|
@ -18,18 +18,12 @@ volumes: |
|
|
- name: dockersock |
|
|
- name: dockersock |
|
|
host: |
|
|
host: |
|
|
path: /data/drone/docker/sock |
|
|
path: /data/drone/docker/sock |
|
|
- name: gitea |
|
|
|
|
|
host: |
|
|
|
|
|
path: /gitea |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
steps: |
|
|
|
|
|
|
|
|
- name: "Checkout" |
|
|
- name: "Checkout" |
|
|
image: registry.cn-hangzhou.aliyuncs.com/qmiot/init:alpine-git-v2.36.2 |
|
|
image: registry.cn-hangzhou.aliyuncs.com/qmiot/init:alpine-git-v2.36.2 |
|
|
pull: if-not-exists |
|
|
pull: if-not-exists |
|
|
volumes: |
|
|
|
|
|
- name: gitea |
|
|
|
|
|
path: /root/.ssh/id_rsa |
|
|
|
|
|
commands: |
|
|
commands: |
|
|
- echo 192.168.0.2 git.1000my.com >> /etc/hosts |
|
|
- echo 192.168.0.2 git.1000my.com >> /etc/hosts |
|
|
- ping git.1000my.com -c 1 |
|
|
- ping git.1000my.com -c 1 |
|
|
|