2019-01-20 22:51:59 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: testing
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: vet
|
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-20 22:51:59 +00:00
|
|
|
commands:
|
|
|
|
- go vet ./...
|
|
|
|
environment:
|
|
|
|
GO111MODULE: on
|
2019-02-15 09:25:53 +00:00
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
- name: test
|
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-20 22:51:59 +00:00
|
|
|
commands:
|
|
|
|
- go test -cover ./...
|
|
|
|
environment:
|
|
|
|
GO111MODULE: on
|
2019-02-15 09:25:53 +00:00
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
temp: {}
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
trigger:
|
2019-02-15 09:25:53 +00:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/tags/**"
|
|
|
|
- "refs/pull/**"
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: linux-amd64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2019-01-21 00:04:57 +00:00
|
|
|
- name: build-push
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-20 22:51:59 +00:00
|
|
|
commands:
|
2019-02-15 09:25:53 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-gitea-release"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
2019-02-15 09:25:53 +00:00
|
|
|
exclude:
|
|
|
|
- tag
|
2019-01-20 22:51:59 +00:00
|
|
|
|
2019-01-21 00:04:57 +00:00
|
|
|
- name: build-tag
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-20 22:51:59 +00:00
|
|
|
commands:
|
2019-02-15 09:25:53 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/amd64/drone-gitea-release"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-01-22 22:12:09 +00:00
|
|
|
- name: executable
|
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-22 22:12:09 +00:00
|
|
|
commands:
|
|
|
|
- ./release/linux/amd64/drone-gitea-release --help
|
|
|
|
|
2019-01-20 22:51:59 +00:00
|
|
|
- name: dryrun
|
|
|
|
pull: always
|
|
|
|
image: plugins/docker:linux-amd64
|
|
|
|
settings:
|
2019-02-15 09:25:53 +00:00
|
|
|
daemon_off: false
|
2019-01-20 22:51:59 +00:00
|
|
|
dockerfile: docker/Dockerfile.linux.amd64
|
|
|
|
dry_run: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2018-03-12 12:46:23 +00:00
|
|
|
repo: plugins/gitea-release
|
2019-01-20 22:51:59 +00:00
|
|
|
tags: linux-amd64
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
pull: always
|
|
|
|
image: plugins/docker:linux-amd64
|
|
|
|
settings:
|
2018-03-15 19:43:32 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
2019-02-15 09:25:53 +00:00
|
|
|
daemon_off: false
|
2019-01-20 22:51:59 +00:00
|
|
|
dockerfile: docker/Dockerfile.linux.amd64
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2018-03-15 19:43:32 +00:00
|
|
|
repo: plugins/gitea-release
|
2019-01-20 22:51:59 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
2019-02-15 09:25:53 +00:00
|
|
|
exclude:
|
|
|
|
- pull_request
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
trigger:
|
2019-02-15 09:25:53 +00:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/tags/**"
|
|
|
|
- "refs/pull/**"
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- testing
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: linux-arm64
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
2019-01-21 00:04:57 +00:00
|
|
|
- name: build-push
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-20 22:51:59 +00:00
|
|
|
commands:
|
2019-02-15 09:25:53 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm64/drone-gitea-release"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
2019-02-15 09:25:53 +00:00
|
|
|
exclude:
|
|
|
|
- tag
|
2019-01-20 22:51:59 +00:00
|
|
|
|
2019-01-21 00:04:57 +00:00
|
|
|
- name: build-tag
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-20 22:51:59 +00:00
|
|
|
commands:
|
2019-02-15 09:25:53 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm64/drone-gitea-release"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-01-22 22:12:09 +00:00
|
|
|
- name: executable
|
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-22 22:12:09 +00:00
|
|
|
commands:
|
|
|
|
- ./release/linux/arm64/drone-gitea-release --help
|
|
|
|
|
2019-01-20 22:51:59 +00:00
|
|
|
- name: dryrun
|
|
|
|
pull: always
|
|
|
|
image: plugins/docker:linux-arm64
|
|
|
|
settings:
|
2019-02-15 09:25:53 +00:00
|
|
|
daemon_off: false
|
2019-01-20 22:51:59 +00:00
|
|
|
dockerfile: docker/Dockerfile.linux.arm64
|
|
|
|
dry_run: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2018-03-15 19:43:32 +00:00
|
|
|
repo: plugins/gitea-release
|
2019-01-20 22:51:59 +00:00
|
|
|
tags: linux-arm64
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
pull: always
|
|
|
|
image: plugins/docker:linux-arm64
|
|
|
|
settings:
|
2018-03-15 19:43:32 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm64
|
2019-02-15 09:25:53 +00:00
|
|
|
daemon_off: false
|
2019-01-20 22:51:59 +00:00
|
|
|
dockerfile: docker/Dockerfile.linux.arm64
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2018-03-15 19:43:32 +00:00
|
|
|
repo: plugins/gitea-release
|
2019-01-20 22:51:59 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
2019-02-15 09:25:53 +00:00
|
|
|
exclude:
|
|
|
|
- pull_request
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
trigger:
|
2019-02-15 09:25:53 +00:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/tags/**"
|
|
|
|
- "refs/pull/**"
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- testing
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: linux-arm
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm
|
|
|
|
|
|
|
|
steps:
|
2019-01-21 00:04:57 +00:00
|
|
|
- name: build-push
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-20 22:51:59 +00:00
|
|
|
commands:
|
2019-02-15 09:25:53 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm/drone-gitea-release"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
2019-02-15 09:25:53 +00:00
|
|
|
exclude:
|
|
|
|
- tag
|
2019-01-20 22:51:59 +00:00
|
|
|
|
2019-01-21 00:04:57 +00:00
|
|
|
- name: build-tag
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-20 22:51:59 +00:00
|
|
|
commands:
|
2019-02-15 09:25:53 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm/drone-gitea-release"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-01-22 22:12:09 +00:00
|
|
|
- name: executable
|
|
|
|
pull: always
|
2020-09-16 06:26:19 +00:00
|
|
|
image: golang:1.13
|
2019-01-22 22:12:09 +00:00
|
|
|
commands:
|
|
|
|
- ./release/linux/arm/drone-gitea-release --help
|
|
|
|
|
2019-01-20 22:51:59 +00:00
|
|
|
- name: dryrun
|
|
|
|
pull: always
|
|
|
|
image: plugins/docker:linux-arm
|
|
|
|
settings:
|
2019-02-15 09:25:53 +00:00
|
|
|
daemon_off: false
|
2019-01-20 22:51:59 +00:00
|
|
|
dockerfile: docker/Dockerfile.linux.arm
|
|
|
|
dry_run: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: plugins/gitea-release
|
|
|
|
tags: linux-arm
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
pull: always
|
|
|
|
image: plugins/docker:linux-arm
|
|
|
|
settings:
|
2018-03-15 19:43:32 +00:00
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-arm
|
2019-02-15 09:25:53 +00:00
|
|
|
daemon_off: false
|
2019-01-20 22:51:59 +00:00
|
|
|
dockerfile: docker/Dockerfile.linux.arm
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: plugins/gitea-release
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
2019-02-15 09:25:53 +00:00
|
|
|
exclude:
|
|
|
|
- pull_request
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
trigger:
|
2019-02-15 09:25:53 +00:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/tags/**"
|
|
|
|
- "refs/pull/**"
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- testing
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: notifications
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: manifest
|
|
|
|
pull: always
|
2019-02-15 09:25:53 +00:00
|
|
|
image: plugins/manifest
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
2019-03-28 08:31:56 +00:00
|
|
|
auto_tag: true
|
2018-03-15 19:43:32 +00:00
|
|
|
ignore_missing: true
|
2019-01-20 22:51:59 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
spec: docker/manifest.tmpl
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
|
|
|
|
- name: microbadger
|
|
|
|
pull: always
|
2019-02-15 09:25:53 +00:00
|
|
|
image: plugins/webhook
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
2019-03-28 08:31:56 +00:00
|
|
|
urls:
|
2019-01-20 22:51:59 +00:00
|
|
|
from_secret: microbadger_url
|
|
|
|
|
|
|
|
trigger:
|
2019-02-15 09:25:53 +00:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- "refs/tags/**"
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- linux-amd64
|
|
|
|
- linux-arm64
|
|
|
|
- linux-arm
|
|
|
|
|
|
|
|
...
|