2019-02-19 23:56:41 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: linux-amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-02-20 00:35:31 +00:00
|
|
|
- "go build -ldflags \"-extldflags \\\\\"-static\\\\\"\" -o release/linux/amd64/drone-server github.com/drone/drone/cmd/drone-server"
|
|
|
|
- CGO_ENABLED=0 go build -o release/linux/amd64/drone-agent github.com/drone/drone/cmd/drone-agent
|
|
|
|
- CGO_ENABLED=0 go build -o release/linux/amd64/drone-controller github.com/drone/drone/cmd/drone-controller
|
2019-02-19 23:56:41 +00:00
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_agent
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
|
|
|
dockerfile: docker/Dockerfile.agent.linux.amd64
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2017-07-18 18:43:37 +00:00
|
|
|
repo: drone/agent
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_controller
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
|
|
|
dockerfile: docker/Dockerfile.controller.linux.amd64
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: drone/controller
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_server
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
|
|
|
dockerfile: docker/Dockerfile.server.linux.amd64
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-20 18:34:26 +00:00
|
|
|
repo: drone/drone
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
temp: {}
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: linux-arm
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-02-20 00:35:31 +00:00
|
|
|
- "go build -ldflags \"-extldflags \\\\\"-static\\\\\"\" -o release/linux/arm/drone-server github.com/drone/drone/cmd/drone-server"
|
|
|
|
- CGO_ENABLED=0 go build -o release/linux/arm/drone-agent github.com/drone/drone/cmd/drone-agent
|
|
|
|
- CGO_ENABLED=0 go build -o release/linux/arm/drone-controller github.com/drone/drone/cmd/drone-controller
|
2019-02-19 23:56:41 +00:00
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_agent
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm
|
|
|
|
dockerfile: docker/Dockerfile.agent.linux.arm
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2017-09-29 18:21:06 +00:00
|
|
|
repo: drone/agent
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_controller
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm
|
|
|
|
dockerfile: docker/Dockerfile.controller.linux.arm
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: drone/controller
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_server
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm
|
|
|
|
dockerfile: docker/Dockerfile.server.linux.arm
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-20 18:34:26 +00:00
|
|
|
repo: drone/drone
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
temp: {}
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: linux-arm64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
|
|
|
- go test -v ./...
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-02-20 00:35:31 +00:00
|
|
|
- "go build -ldflags \"-extldflags \\\\\"-static\\\\\"\" -o release/linux/arm64/drone-server github.com/drone/drone/cmd/drone-server"
|
|
|
|
- CGO_ENABLED=0 go build -o release/linux/arm64/drone-agent github.com/drone/drone/cmd/drone-agent
|
|
|
|
- CGO_ENABLED=0 go build -o release/linux/arm64/drone-controller github.com/drone/drone/cmd/drone-controller
|
2019-02-19 23:56:41 +00:00
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_agent
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm64
|
|
|
|
dockerfile: docker/Dockerfile.agent.linux.arm64
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2017-06-29 22:51:22 +00:00
|
|
|
repo: drone/agent
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_controller
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm64
|
|
|
|
dockerfile: docker/Dockerfile.controller.linux.arm64
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: drone/controller
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: publish_server
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm64
|
|
|
|
dockerfile: docker/Dockerfile.server.linux.arm64
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-20 18:34:26 +00:00
|
|
|
repo: drone/drone
|
2019-02-19 23:56:41 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
temp: {}
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: manifest
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2019-02-21 19:30:05 +00:00
|
|
|
- name: server
|
2019-02-19 23:56:41 +00:00
|
|
|
image: plugins/manifest:1
|
|
|
|
settings:
|
2019-02-20 18:34:26 +00:00
|
|
|
auto_tag: true
|
2019-02-19 23:56:41 +00:00
|
|
|
ignore_missing: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
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
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: agent
|
|
|
|
image: plugins/manifest:1
|
|
|
|
settings:
|
2019-02-20 18:34:26 +00:00
|
|
|
auto_tag: true
|
2019-02-19 23:56:41 +00:00
|
|
|
ignore_missing: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
spec: docker/manifest.agent.tmpl
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: controller
|
|
|
|
image: plugins/manifest:1
|
|
|
|
settings:
|
2019-02-20 18:34:26 +00:00
|
|
|
auto_tag: true
|
2019-02-19 23:56:41 +00:00
|
|
|
ignore_missing: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
spec: docker/manifest.controller.tmpl
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-amd64
|
|
|
|
- linux-arm
|
|
|
|
- linux-arm64
|
|
|
|
|
|
|
|
...
|