-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.special.drone.yml
executable file
·34 lines (33 loc) · 1 KB
/
.special.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
kind: pipeline
name: build
steps:
- name: build
image: registry.cn-beijing.aliyuncs.com/king019/docker:build
privileged: true
volumes:
- name: maven
path: /root/.m2
- name: sock
path: /var/run/docker.sock
- name: docker_config
path: /root/.docker/config.json
commands:
- chmod -R 777 /bin
- chmod -R 777 /drone/src
- which docker
- docker version
- docker info
- source /etc/profile;java -version
- mvn clean compile exec:java -Dexec.mainClass="com.k.docker.jenkins.JenkinsBuildShell" -Dexec.args="ws=/drone/src@thread=1@rep=true@push=false@local=true@in=alpine,centos,fedora,openeuler,rhel,linux,nacos"
- chmod -R 777 /drone/src
- sh ./target/local_region/platform/noSuffix_false.sh
volumes:
- name: maven
host:
path: /opt/soft/docker/data/maven/m2
- name: sock
host:
path: /var/run/docker.sock
- name: docker_config
host:
path: /opt/soft/docker/data/jenkins/jkwk/config.json