woodpecker-docker-buildx/.drone.yml

1504 lines
27 KiB
YAML
Raw Normal View History

---
kind: pipeline
name: testing
platform:
os: linux
arch: amd64
steps:
- name: vet
pull: always
image: golang:1.11
commands:
- go vet ./...
environment:
GO111MODULE: on
2019-02-10 12:26:22 +00:00
volumes:
- name: gopath
path: /go
- name: test
pull: always
image: golang:1.11
commands:
- go test -cover ./...
environment:
GO111MODULE: on
2019-02-10 12:26:22 +00:00
volumes:
- name: gopath
path: /go
volumes:
- name: gopath
temp: {}
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
2019-08-09 17:44:41 +00:00
---
kind: pipeline
type: ssh
name: windows-1809-amd64-docker
platform:
os: windows
server:
host: windows.1809.amd64.plugins.drone.ci
password:
from_secret: windows_password
user:
from_secret: windows_username
steps:
- name: build
commands:
# TODO use the new DRONE_SEMVER_SHORT environment variables to
# publish docker images for tag events.
- go build -o release/windows/amd64/drone-docker.exe
- docker login -u $env:USERNAME -p $env:PASSWORD
2019-08-13 22:52:36 +00:00
- docker build -f docker/docker/Dockerfile.windows.1809 -t plugins/docker:windows-1809-amd64 .
2019-08-09 17:44:41 +00:00
- docker push plugins/docker:windows-1809-amd64
environment:
CGO_ENABLED: "0"
USERNAME:
from_secret: docker_username
PASSWORD:
from_secret: docker_password
trigger:
event:
- push
depends_on:
- testing
2019-08-13 20:35:12 +00:00
---
kind: pipeline
type: ssh
name: windows-1903-amd64-docker
platform:
os: windows
server:
host: windows.1903.amd64.plugins.drone.ci
password:
from_secret: windows_password
user:
from_secret: windows_username
steps:
- name: build
commands:
# TODO use the new DRONE_SEMVER_SHORT environment variables to
# publish docker images for tag events.
- go build -o release/windows/amd64/drone-docker.exe
- docker login -u $env:USERNAME -p $env:PASSWORD
2019-08-13 22:52:36 +00:00
- docker build -f docker/docker/Dockerfile.windows.1903 -t plugins/docker:windows-1903-amd64 .
2019-08-13 20:35:12 +00:00
- docker push plugins/docker:windows-1903-amd64
environment:
CGO_ENABLED: "0"
USERNAME:
from_secret: docker_username
PASSWORD:
from_secret: docker_password
trigger:
event:
- push
depends_on:
- testing
---
kind: pipeline
2019-01-21 00:05:01 +00:00
name: linux-amd64-docker
platform:
os: linux
arch: amd64
steps:
2019-01-21 00:05:01 +00:00
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-22 22:12:12 +00:00
- name: executable
pull: always
image: golang:1.11
commands:
- ./release/linux/amd64/drone-docker --help
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/docker/Dockerfile.linux.amd64
dry_run: true
password:
from_secret: docker_password
repo: plugins/docker
tags: linux-amd64
username:
from_secret: docker_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/docker/Dockerfile.linux.amd64
password:
from_secret: docker_password
2016-05-03 23:17:16 +00:00
repo: plugins/docker
username:
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
2019-01-21 00:05:01 +00:00
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
2019-01-21 00:05:01 +00:00
depends_on:
- testing
---
kind: pipeline
name: linux-arm64-docker
platform:
os: linux
arch: arm64
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm64/drone-docker ./cmd/drone-docker"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-22 22:12:12 +00:00
- name: executable
pull: always
image: golang:1.11
commands:
- ./release/linux/arm64/drone-docker --help
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/docker/Dockerfile.linux.arm64
dry_run: true
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/docker
tags: linux-arm64
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
2019-01-21 00:05:01 +00:00
auto_tag_suffix: linux-arm64
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/docker/Dockerfile.linux.arm64
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/docker
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
2019-01-21 00:05:01 +00:00
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
2019-01-21 00:05:01 +00:00
depends_on:
- testing
---
kind: pipeline
name: linux-arm-docker
platform:
os: linux
arch: arm
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm/drone-docker ./cmd/drone-docker"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm/drone-docker ./cmd/drone-docker"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-22 22:12:12 +00:00
- name: executable
pull: always
image: golang:1.11
commands:
- ./release/linux/arm/drone-docker --help
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/docker/Dockerfile.linux.arm
dry_run: true
password:
from_secret: docker_password
repo: plugins/docker
tags: linux-arm
username:
from_secret: docker_username
when:
event:
- pull_request
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/docker/Dockerfile.linux.arm
password:
from_secret: docker_password
repo: plugins/docker
username:
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- testing
2019-02-10 12:26:22 +00:00
---
kind: pipeline
name: notifications-docker
platform:
os: linux
arch: amd64
steps:
- name: manifest
pull: always
image: plugins/manifest
settings:
2019-03-27 12:39:24 +00:00
auto_tag: true
2019-02-10 12:26:22 +00:00
ignore_missing: true
password:
from_secret: docker_password
spec: docker/docker/manifest.tmpl
username:
from_secret: docker_username
- name: microbadger
pull: always
image: plugins/webhook
2019-08-06 20:32:45 +00:00
failure: ignore
2019-02-10 12:26:22 +00:00
settings:
2019-03-27 12:31:52 +00:00
urls:
2019-02-10 12:26:22 +00:00
from_secret: microbadger_docker
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
depends_on:
2019-08-09 17:46:20 +00:00
- windows-1809-amd64-docker
2019-08-13 20:35:12 +00:00
- windows-1903-amd64-docker
2019-02-10 12:26:22 +00:00
- linux-amd64-docker
- linux-arm64-docker
- linux-arm-docker
2019-01-21 00:05:01 +00:00
---
kind: pipeline
name: linux-amd64-gcr
platform:
os: linux
arch: amd64
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/gcr/Dockerfile.linux.amd64
dry_run: true
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/gcr
tags: linux-amd64
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/gcr/Dockerfile.linux.amd64
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/gcr
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- linux-amd64-docker
---
kind: pipeline
2019-01-21 00:05:01 +00:00
name: linux-arm64-gcr
platform:
os: linux
arch: arm64
steps:
2019-01-21 00:05:01 +00:00
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm64/drone-gcr ./cmd/drone-gcr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/gcr/Dockerfile.linux.arm64
dry_run: true
password:
from_secret: docker_password
2019-01-21 00:05:01 +00:00
repo: plugins/gcr
tags: linux-arm64
username:
from_secret: docker_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm64
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/gcr/Dockerfile.linux.arm64
password:
from_secret: docker_password
2019-01-21 00:05:01 +00:00
repo: plugins/gcr
username:
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
2019-01-21 00:05:01 +00:00
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
2019-01-21 00:05:01 +00:00
depends_on:
- linux-arm64-docker
---
kind: pipeline
name: linux-arm-gcr
platform:
os: linux
arch: arm
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm/drone-gcr ./cmd/drone-gcr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm/drone-gcr ./cmd/drone-gcr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/gcr/Dockerfile.linux.arm
dry_run: true
password:
from_secret: docker_password
repo: plugins/gcr
tags: linux-arm
username:
from_secret: docker_username
when:
event:
- pull_request
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/gcr/Dockerfile.linux.arm
password:
from_secret: docker_password
repo: plugins/gcr
username:
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- linux-arm-docker
2019-01-21 00:05:01 +00:00
2019-02-10 12:26:22 +00:00
---
kind: pipeline
name: notifications-gcr
platform:
os: linux
arch: amd64
steps:
- name: manifest
pull: always
image: plugins/manifest
settings:
2019-03-27 12:39:24 +00:00
auto_tag: true
2019-02-10 12:26:22 +00:00
ignore_missing: true
password:
from_secret: docker_password
spec: docker/gcr/manifest.tmpl
username:
from_secret: docker_username
- name: microbadger
pull: always
image: plugins/webhook
2019-08-06 20:32:45 +00:00
failure: ignore
2019-02-10 12:26:22 +00:00
settings:
2019-03-27 12:31:52 +00:00
urls:
2019-02-10 12:26:22 +00:00
from_secret: microbadger_gcr
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
depends_on:
- linux-amd64-gcr
- linux-arm64-gcr
- linux-arm-gcr
2019-01-21 00:05:01 +00:00
---
kind: pipeline
name: linux-amd64-ecr
platform:
os: linux
arch: amd64
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/ecr/Dockerfile.linux.amd64
dry_run: true
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/ecr
tags: linux-amd64
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
2019-01-21 00:05:01 +00:00
auto_tag_suffix: linux-amd64
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/ecr/Dockerfile.linux.amd64
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/ecr
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
2019-01-21 00:05:01 +00:00
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
2019-01-21 00:05:01 +00:00
depends_on:
- linux-amd64-docker
2019-01-21 00:05:01 +00:00
---
kind: pipeline
name: linux-arm64-ecr
platform:
os: linux
arch: arm64
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm64/drone-ecr ./cmd/drone-ecr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm64/drone-ecr ./cmd/drone-ecr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/ecr/Dockerfile.linux.arm64
dry_run: true
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/ecr
tags: linux-arm64
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm64
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/ecr/Dockerfile.linux.arm64
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/ecr
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- linux-arm64-docker
---
kind: pipeline
name: linux-arm-ecr
platform:
os: linux
arch: arm
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm/drone-ecr ./cmd/drone-ecr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm/drone-ecr ./cmd/drone-ecr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/ecr/Dockerfile.linux.arm
dry_run: true
password:
from_secret: docker_password
repo: plugins/ecr
tags: linux-arm
username:
from_secret: docker_username
when:
event:
- pull_request
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/ecr/Dockerfile.linux.arm
password:
from_secret: docker_password
repo: plugins/ecr
username:
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- linux-arm-docker
2019-02-10 12:26:22 +00:00
---
kind: pipeline
name: notifications-ecr
platform:
os: linux
arch: amd64
steps:
- name: manifest
pull: always
image: plugins/manifest
settings:
2019-03-27 12:39:24 +00:00
auto_tag: true
2019-02-10 12:26:22 +00:00
ignore_missing: true
password:
from_secret: docker_password
spec: docker/ecr/manifest.tmpl
username:
from_secret: docker_username
- name: microbadger
pull: always
image: plugins/webhook
2019-08-06 20:32:45 +00:00
failure: ignore
2019-02-10 12:26:22 +00:00
settings:
2019-03-27 12:31:52 +00:00
urls:
2019-02-10 12:26:22 +00:00
from_secret: microbadger_ecr
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
depends_on:
- linux-amd64-ecr
- linux-arm64-ecr
- linux-arm-ecr
2019-01-21 00:05:01 +00:00
---
kind: pipeline
name: linux-amd64-heroku
platform:
os: linux
arch: amd64
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-heroku"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/heroku/Dockerfile.linux.amd64
dry_run: true
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/heroku
2019-01-21 00:05:01 +00:00
tags: linux-amd64
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
2019-01-21 00:05:01 +00:00
auto_tag_suffix: linux-amd64
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/heroku/Dockerfile.linux.amd64
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/heroku
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
2019-01-21 00:05:01 +00:00
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
2019-01-21 00:05:01 +00:00
depends_on:
- linux-amd64-docker
2019-01-21 00:05:01 +00:00
---
kind: pipeline
name: linux-arm64-heroku
platform:
os: linux
arch: arm64
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm64/drone-heroku ./cmd/drone-heroku"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/heroku/Dockerfile.linux.arm64
dry_run: true
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/heroku
tags: linux-arm64
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
2019-01-21 00:05:01 +00:00
auto_tag_suffix: linux-arm64
2019-02-10 12:26:22 +00:00
daemon_off: false
2019-01-21 00:05:01 +00:00
dockerfile: docker/heroku/Dockerfile.linux.arm64
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
repo: plugins/heroku
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
2019-01-21 00:05:01 +00:00
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
2019-01-21 00:05:01 +00:00
depends_on:
- linux-arm64-docker
---
kind: pipeline
name: linux-arm-heroku
platform:
os: linux
arch: arm
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/arm/drone-heroku ./cmd/drone-heroku"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/arm/drone-heroku ./cmd/drone-heroku"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
- name: dryrun
pull: always
image: plugins/docker:18
settings:
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/heroku/Dockerfile.linux.arm
dry_run: true
password:
from_secret: docker_password
repo: plugins/heroku
tags: linux-arm
username:
from_secret: docker_username
when:
event:
- pull_request
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm
2019-02-10 12:26:22 +00:00
daemon_off: false
dockerfile: docker/heroku/Dockerfile.linux.arm
password:
from_secret: docker_password
repo: plugins/heroku
username:
from_secret: docker_username
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
2019-01-21 00:05:01 +00:00
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
2019-01-21 00:05:01 +00:00
depends_on:
- linux-arm-docker
2019-01-21 00:05:01 +00:00
---
kind: pipeline
name: notifications-heroku
platform:
os: linux
arch: amd64
steps:
- name: manifest
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/manifest
settings:
2019-03-27 12:39:24 +00:00
auto_tag: true
ignore_missing: true
password:
2019-01-21 00:05:01 +00:00
from_secret: docker_password
spec: docker/heroku/manifest.tmpl
username:
2019-01-21 00:05:01 +00:00
from_secret: docker_username
2019-01-21 00:05:01 +00:00
- name: microbadger
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/webhook
2019-08-06 20:32:45 +00:00
failure: ignore
settings:
2019-03-27 12:31:52 +00:00
urls:
2019-01-21 20:48:42 +00:00
from_secret: microbadger_heroku
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
depends_on:
2019-01-21 00:05:01 +00:00
- linux-amd64-heroku
- linux-arm64-heroku
- linux-arm-heroku
---
kind: pipeline
name: linux-amd64-acr
platform:
os: linux
arch: amd64
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-acr ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/amd64/drone-acr ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
- name: dryrun
pull: always
image: plugins/docker:18
settings:
daemon_off: false
dockerfile: docker/acr/Dockerfile.linux.amd64
dry_run: true
password:
from_secret: docker_password
repo: plugins/acr
tags: linux-amd64
username:
from_secret: docker_username
when:
event:
- pull_request
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
daemon_off: false
dockerfile: docker/acr/Dockerfile.linux.amd64
password:
from_secret: docker_password
repo: plugins/acr
username:
from_secret: docker_username
when:
event:
exclude:
- pull_request
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- linux-amd64-docker
---
kind: pipeline
name: linux-arm64-acr
platform:
os: linux
arch: arm64
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-acr ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm64/drone-acr ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
- name: dryrun
pull: always
image: plugins/docker:18
settings:
daemon_off: false
dockerfile: docker/acr/Dockerfile.linux.arm64
dry_run: true
password:
from_secret: docker_password
repo: plugins/acr
tags: linux-arm64
username:
from_secret: docker_username
when:
event:
- pull_request
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm64
daemon_off: false
dockerfile: docker/acr/Dockerfile.linux.arm64
password:
from_secret: docker_password
repo: plugins/acr
username:
from_secret: docker_username
when:
event:
exclude:
- pull_request
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- linux-arm64-docker
---
kind: pipeline
name: linux-arm-acr
platform:
os: linux
arch: arm
steps:
- name: build-push
pull: always
image: golang:1.11
commands:
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-acr ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/linux/arm/drone-acr ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
- name: dryrun
pull: always
image: plugins/docker:18
settings:
daemon_off: false
dockerfile: docker/acr/Dockerfile.linux.arm
dry_run: true
password:
from_secret: docker_password
repo: plugins/acr
tags: linux-arm
username:
from_secret: docker_username
when:
event:
- pull_request
- name: publish
pull: always
image: plugins/docker:18
settings:
auto_tag: true
auto_tag_suffix: linux-arm
daemon_off: false
dockerfile: docker/acr/Dockerfile.linux.arm
password:
from_secret: docker_password
repo: plugins/acr
username:
from_secret: docker_username
when:
event:
exclude:
- pull_request
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- linux-arm-docker
---
kind: pipeline
name: notifications-acr
platform:
os: linux
arch: amd64
steps:
- name: manifest
pull: always
image: plugins/manifest
settings:
ignore_missing: true
password:
from_secret: docker_password
spec: docker/acr/manifest.tmpl
username:
from_secret: docker_username
- name: microbadger
pull: always
image: plugins/webhook
2019-08-06 20:32:45 +00:00
failure: ignore
settings:
url:
from_secret: microbadger_acr
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
depends_on:
- linux-amd64-acr
- linux-arm64-acr
- linux-arm-acr
...