2019-01-20 22:51:59 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-01-21 00:05:01 +00:00
|
|
|
name: windows-amd64-docker
|
2019-01-20 22:51:59 +00:00
|
|
|
|
|
|
|
platform:
|
2019-01-21 00:05:01 +00:00
|
|
|
os: windows
|
2019-01-20 22:51:59 +00:00
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: build-push
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:05:01 +00:00
|
|
|
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-docker ./cmd/drone-docker"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: build-tag
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:05:01 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-docker ./cmd/drone-docker"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: dryrun
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2019-01-21 00:05:01 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
2019-01-21 00:05:01 +00:00
|
|
|
dockerfile: docker/docker/Dockerfile.windows.amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
dry_run: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: plugins/docker
|
2019-01-21 00:05:01 +00:00
|
|
|
tags: windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: publish
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2019-01-21 00:05:01 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-01-21 00:05:01 +00:00
|
|
|
auto_tag_suffix: windows-amd64
|
|
|
|
dockerfile: docker/docker/Dockerfile.windows.amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: plugins/docker
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: windows-amd64-gcr
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: windows
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build-push
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:05:01 +00:00
|
|
|
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-gcr ./cmd/drone-gcr"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: build-tag
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:05:01 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-gcr ./cmd/drone-gcr"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: dryrun
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2019-01-21 00:05:01 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
|
|
|
dry_run: true
|
2019-01-21 00:05:01 +00:00
|
|
|
gcrfile: docker/gcr/Dockerfile.windows.amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
password:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: gcr_password
|
|
|
|
repo: plugins/gcr
|
|
|
|
tags: windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
username:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: gcr_username
|
2019-01-20 22:51:59 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: publish
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2019-01-21 00:05:01 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-01-21 00:05:01 +00:00
|
|
|
auto_tag_suffix: windows-amd64
|
|
|
|
gcrfile: docker/gcr/Dockerfile.windows.amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
password:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: gcr_password
|
|
|
|
repo: plugins/gcr
|
2019-01-20 22:51:59 +00:00
|
|
|
username:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: gcr_username
|
2019-01-20 22:51:59 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- windows-amd64-docker
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: windows-amd64-ecr
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: windows
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build-push
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:05:01 +00:00
|
|
|
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-ecr ./cmd/drone-ecr"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: build-tag
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:05:01 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-ecr ./cmd/drone-ecr"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: dryrun
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2019-01-21 00:05:01 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
2019-01-21 00:05:01 +00:00
|
|
|
dockerfile: docker/ecr/Dockerfile.windows.amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
dry_run: true
|
|
|
|
password:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: ecr_password
|
|
|
|
repo: plugins/ecr
|
|
|
|
tags: windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
username:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: ecr_username
|
2019-01-20 22:51:59 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: publish
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2019-01-21 00:05:01 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-01-21 00:05:01 +00:00
|
|
|
auto_tag_suffix: windows-amd64
|
|
|
|
dockerfile: docker/ecr/Dockerfile.windows.amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
password:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: ecr_password
|
|
|
|
repo: plugins/ecr
|
2019-01-20 22:51:59 +00:00
|
|
|
username:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: ecr_username
|
2019-01-20 22:51:59 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- windows-amd64-docker
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: windows-amd64-heroku
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: windows
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build-push
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:05:01 +00:00
|
|
|
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-heroku ./cmd/drone-heroku"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: build-tag
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:05:01 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-heroku ./cmd/drone-heroku"
|
2019-01-20 22:51:59 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: dryrun
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2019-01-21 00:05:01 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
|
|
|
dry_run: true
|
2019-01-21 00:05:01 +00:00
|
|
|
herokufile: docker/heroku/Dockerfile.windows.amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
password:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: heroku_password
|
|
|
|
repo: plugins/heroku
|
|
|
|
tags: windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
username:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: heroku_username
|
2019-01-20 22:51:59 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
2019-01-21 00:05:01 +00:00
|
|
|
- name: publish
|
2019-01-20 22:51:59 +00:00
|
|
|
pull: always
|
2019-01-21 00:05:01 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-01-21 00:05:01 +00:00
|
|
|
auto_tag_suffix: windows-amd64
|
|
|
|
herokufile: docker/heroku/Dockerfile.windows.amd64
|
2019-01-20 22:51:59 +00:00
|
|
|
password:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: heroku_password
|
|
|
|
repo: plugins/heroku
|
2019-01-20 22:51:59 +00:00
|
|
|
username:
|
2019-01-21 00:05:01 +00:00
|
|
|
from_secret: heroku_username
|
2019-01-20 22:51:59 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|
2019-01-21 00:05:01 +00:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- windows-amd64-docker
|