2019-02-19 23:56:41 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-08-07 05:47:04 +00:00
|
|
|
type: docker
|
2019-02-19 23:56:41 +00:00
|
|
|
name: linux-amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: amd64
|
2019-08-07 05:47:04 +00:00
|
|
|
os: linux
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2019-09-11 20:50:36 +00:00
|
|
|
image: golang:1.13.0
|
2019-02-19 23:56:41 +00:00
|
|
|
commands:
|
2019-08-07 05:47:04 +00:00
|
|
|
- go test ./...
|
|
|
|
|
2019-02-19 23:56:41 +00:00
|
|
|
- name: build
|
2019-09-11 20:50:36 +00:00
|
|
|
image: golang:1.13.0
|
2019-02-19 23:56:41 +00:00
|
|
|
commands:
|
2019-08-07 05:47:04 +00:00
|
|
|
- sh scripts/build.sh
|
|
|
|
environment:
|
|
|
|
GOARCH: amd64
|
|
|
|
GOOS: linux
|
|
|
|
|
2019-12-10 21:45:06 +00:00
|
|
|
- name: publish
|
2019-08-07 05:47:04 +00:00
|
|
|
image: plugins/docker:18
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
2019-08-07 06:01:12 +00:00
|
|
|
dockerfile: docker/Dockerfile.server.linux.amd64
|
2019-08-07 05:47:04 +00:00
|
|
|
repo: drone/drone
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-19 23:56:41 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-08-07 05:47:04 +00:00
|
|
|
type: docker
|
|
|
|
name: linux-arm64
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
platform:
|
2019-08-07 05:47:04 +00:00
|
|
|
arch: arm64
|
2019-02-19 23:56:41 +00:00
|
|
|
os: linux
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2019-09-11 20:50:36 +00:00
|
|
|
image: golang:1.13.0
|
2019-02-19 23:56:41 +00:00
|
|
|
commands:
|
2019-08-07 05:47:04 +00:00
|
|
|
- sh scripts/build.sh
|
|
|
|
environment:
|
|
|
|
GOARCH: arm64
|
|
|
|
GOOS: linux
|
2019-02-19 23:56:41 +00:00
|
|
|
|
2019-12-10 21:45:06 +00:00
|
|
|
- name: publish
|
2019-08-07 05:47:04 +00:00
|
|
|
image: plugins/docker:18
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-08-07 05:47:04 +00:00
|
|
|
auto_tag_suffix: linux-arm64
|
2019-08-07 06:01:12 +00:00
|
|
|
dockerfile: docker/Dockerfile.server.linux.arm64
|
2019-08-07 05:47:04 +00:00
|
|
|
repo: drone/drone
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-02-19 23:56:41 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-08-07 05:47:04 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-amd64
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-08-07 05:47:04 +00:00
|
|
|
type: docker
|
|
|
|
name: linux-arm
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
platform:
|
2019-08-07 05:47:04 +00:00
|
|
|
arch: arm
|
2019-02-19 23:56:41 +00:00
|
|
|
os: linux
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2019-09-11 20:50:36 +00:00
|
|
|
image: golang:1.13.0
|
2019-02-19 23:56:41 +00:00
|
|
|
commands:
|
2019-08-07 05:47:04 +00:00
|
|
|
- sh scripts/build.sh
|
|
|
|
environment:
|
|
|
|
GOARCH: arm
|
|
|
|
GOOS: linux
|
2019-02-19 23:56:41 +00:00
|
|
|
|
2019-12-10 21:45:06 +00:00
|
|
|
- name: publish
|
2019-08-07 05:47:04 +00:00
|
|
|
image: plugins/docker:18
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-08-07 05:47:04 +00:00
|
|
|
auto_tag_suffix: linux-arm
|
2019-08-07 06:01:12 +00:00
|
|
|
dockerfile: docker/Dockerfile.server.linux.arm
|
2019-08-07 05:47:04 +00:00
|
|
|
repo: drone/drone
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-02-19 23:56:41 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-08-07 05:47:04 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-amd64
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: manifest
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
steps:
|
2019-12-10 21:45:06 +00:00
|
|
|
- name: publish
|
2019-08-22 20:21:17 +00:00
|
|
|
image: plugins/manifest:1.2
|
2019-02-19 23:56:41 +00:00
|
|
|
settings:
|
2019-02-20 18:34:26 +00:00
|
|
|
auto_tag: true
|
2019-02-19 23:56:41 +00:00
|
|
|
ignore_missing: true
|
2019-02-21 19:30:05 +00:00
|
|
|
spec: docker/manifest.server.tmpl
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2019-08-07 05:47:04 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-19 23:56:41 +00:00
|
|
|
|
2019-08-07 05:47:04 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2019-02-19 23:56:41 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-arm64
|
2019-08-07 05:47:04 +00:00
|
|
|
- linux-arm
|