forked from goodrain/rainbond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
57 lines (52 loc) · 1.07 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
kind: pipeline
name: build arm64
platform:
os: linux
arch: arm64
trigger:
event:
include:
- custom
node:
city: sydney
steps:
- name: build rainbond
image: rainbond/docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
environment:
DOMESTIC_BASE_NAME:
from_secret: domestic_base_name
DOMESTIC_DOCKER_USERNAME:
from_secret: domestic_docker_username
DOMESTIC_DOCKER_PASSWORD:
from_secret: domestic_docker_password
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
BUILD_VERSION:
from_secret: build_version
GOPROXY:
from_secret: go_proxy
GOOS: linux
GOARCH: arm64
commands:
- sleep 20 # give docker enough time to start
- VERSION=$BUILD_VERSION BUILD_GOARCH=arm64 BUILD_BASE_IMAGE_VERSION=3.16 ./release.sh all push
when:
event:
include:
- custom
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}