-
Notifications
You must be signed in to change notification settings - Fork 74
/
.drone.yml
89 lines (80 loc) · 1.67 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
kind: pipeline
name: build arm64
platform:
os: linux
arch: arm64
trigger:
event:
include:
- custom
node:
city: sydney
steps:
- name: clone rainbond-ui
image: alpine/git
environment:
UI_BRANCH:
from_secret: ui_branch
commands:
- git clone -b $UI_BRANCH --depth=1 https://github.com/goodrain/rainbond-ui.git
- name: build rainbond-ui dist
image: node:14
commands:
- cd rainbond-ui
- yarn install
- yarn run build
- name: build rainbond-ui
image: rainbond/docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
environment:
VERSION:
from_secret: version
commands:
- sleep 10 # give docker enough time to start
- cd rainbond-ui
- docker build -t rainbond/rainbond-ui:$VERSION .
- name: build rainbond-console
image: rainbond/docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
environment:
VERSION:
from_secret: version
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
GOOS: linux
GOARCH: arm64
OPERATOR_BRANCH:
from_secret: operator_branch
ADAPTOR_BRANCH:
from_secret: adaptor_branch
DOMESTIC_DOCKER_USERNAME:
from_secret: domestic_docker_username
DOMESTIC_DOCKER_PASSWORD:
from_secret: domestic_docker_password
DOMESTIC_BASE_NAME:
from_secret: domestic_base_name
commands:
- rm -rf rainbond-ui
- BUILD_ARCH=$GOARCH ./release.sh dind
when:
event:
include:
- custom
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}