woodpecker-docker-buildx/.drone.windows.yml

927 lines
17 KiB
YAML
Raw Normal View History

---
kind: pipeline
2019-02-10 12:26:22 +00:00
name: testing
platform:
2019-01-21 00:05:01 +00:00
os: windows
arch: amd64
2019-02-10 12:26:22 +00:00
version: 1803
steps:
- name: vet
pull: always
image: golang:1.11-windowsservercore-1803
commands:
- go vet ./...
environment:
GO111MODULE: on
volumes:
- name: gopath
path: C:\\gopath
- name: test
pull: always
image: golang:1.11-windowsservercore-1803
commands:
- go test -cover ./...
environment:
GO111MODULE: on
volumes:
- name: gopath
path: C:\\gopath
volumes:
- name: gopath
temp: {}
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
---
kind: pipeline
name: windows-1803-docker
platform:
os: windows
arch: amd64
version: 1803
steps:
2019-01-21 00:05:01 +00:00
- name: build-push
pull: always
2019-02-10 12:26:22 +00:00
image: golang:1.11-windowsservercore-1803
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/windows/amd64/drone-docker.exe ./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
2019-02-10 12:26:22 +00:00
image: golang:1.11-windowsservercore-1803
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-22 22:12:12 +00:00
- name: executable
pull: always
2019-02-10 12:26:22 +00:00
image: golang:1.11-windowsservercore-1803
2019-01-22 22:12:12 +00:00
commands:
2019-02-10 12:26:22 +00:00
- ./release/windows/amd64/drone-docker.exe --help
2019-01-22 22:12:12 +00:00
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/docker:windows-1803
settings:
2019-02-10 12:26:22 +00:00
daemon_off: true
dockerfile: docker/docker/Dockerfile.windows.1803
dry_run: true
password:
from_secret: docker_password
repo: plugins/docker
2019-02-10 12:26:22 +00:00
tags: windows-1803
username:
from_secret: docker_username
2019-02-10 12:26:22 +00:00
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/docker:windows-1803
settings:
auto_tag: true
2019-02-10 12:26:22 +00:00
auto_tag_suffix: windows-1803
daemon_off: true
dockerfile: docker/docker/Dockerfile.windows.1803
password:
from_secret: docker_password
repo: plugins/docker
username:
from_secret: docker_username
2019-02-10 12:26:22 +00:00
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
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/**"
depends_on:
- testing
2019-01-21 00:05:01 +00:00
---
kind: pipeline
2019-02-10 12:26:22 +00:00
name: windows-1809-docker
2019-01-21 00:05:01 +00:00
platform:
os: windows
arch: amd64
2019-02-10 12:26:22 +00:00
version: 1809
2019-01-21 00:05:01 +00:00
steps:
- name: build-push
pull: always
2019-02-10 12:26:22 +00:00
image: golang:1.11-windowsservercore-1809
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/windows/amd64/drone-docker.exe ./cmd/drone-docker"
2019-02-10 12:26:22 +00:00
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11-windowsservercore-1809
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/windows/amd64/drone-docker.exe ./cmd/drone-docker"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
- tag
- name: executable
pull: always
image: golang:1.11-windowsservercore-1809
commands:
- ./release/windows/amd64/drone-docker.exe --help
- name: dryrun
pull: always
image: plugins/docker:windows-1809
settings:
daemon_off: true
dockerfile: docker/docker/Dockerfile.windows.1809
dry_run: true
password:
from_secret: docker_password
repo: plugins/docker
tags: windows-1809
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- pull_request
2019-02-10 12:26:22 +00:00
- name: publish
pull: always
image: plugins/docker:windows-1809
settings:
auto_tag: true
auto_tag_suffix: windows-1809
daemon_off: true
dockerfile: docker/docker/Dockerfile.windows.1809
password:
from_secret: docker_password
repo: plugins/docker
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
exclude:
- pull_request
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- testing
---
kind: pipeline
name: notifications-docker
platform:
os: windows
arch: amd64
version: 1809
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
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:
- windows-1803-docker
- windows-1809-docker
---
kind: pipeline
name: windows-1803-gcr
platform:
os: windows
arch: amd64
version: 1803
steps:
- name: build-push
pull: always
image: golang:1.11-windowsservercore-1803
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/windows/amd64/drone-gcr.exe ./cmd/drone-gcr"
2019-02-10 12:26:22 +00:00
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
2019-02-10 12:26:22 +00:00
image: golang:1.11-windowsservercore-1803
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/windows/amd64/drone-gcr.exe ./cmd/drone-gcr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/docker:windows-1803
settings:
2019-02-10 12:26:22 +00:00
daemon_off: true
dockerfile: docker/gcr/Dockerfile.windows.1803
dry_run: true
password:
2019-02-10 12:26:22 +00:00
from_secret: docker_password
2019-01-21 00:05:01 +00:00
repo: plugins/gcr
2019-02-10 12:26:22 +00:00
tags: windows-1803
username:
2019-02-10 12:26:22 +00:00
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/docker:windows-1803
settings:
auto_tag: true
2019-02-10 12:26:22 +00:00
auto_tag_suffix: windows-1803
daemon_off: true
dockerfile: docker/gcr/Dockerfile.windows.1803
password:
2019-02-10 12:26:22 +00:00
from_secret: docker_password
2019-01-21 00:05:01 +00:00
repo: plugins/gcr
username:
2019-02-10 12:26:22 +00:00
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
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:
2019-02-10 12:26:22 +00:00
- windows-1803-docker
2019-01-21 00:05:01 +00:00
---
kind: pipeline
2019-02-10 12:26:22 +00:00
name: windows-1809-gcr
2019-01-21 00:05:01 +00:00
platform:
os: windows
arch: amd64
2019-02-10 12:26:22 +00:00
version: 1809
2019-01-21 00:05:01 +00:00
steps:
- name: build-push
pull: always
2019-02-10 12:26:22 +00:00
image: golang:1.11-windowsservercore-1809
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/windows/amd64/drone-gcr.exe ./cmd/drone-gcr"
2019-02-10 12:26:22 +00:00
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11-windowsservercore-1809
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/windows/amd64/drone-gcr.exe ./cmd/drone-gcr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
2019-02-10 12:26:22 +00:00
- tag
- name: dryrun
pull: always
image: plugins/docker:windows-1809
settings:
daemon_off: true
dockerfile: docker/gcr/Dockerfile.windows.1809
dry_run: true
password:
from_secret: docker_password
repo: plugins/gcr
tags: windows-1809
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- pull_request
2019-02-10 12:26:22 +00:00
- name: publish
pull: always
image: plugins/docker:windows-1809
settings:
auto_tag: true
auto_tag_suffix: windows-1809
daemon_off: true
dockerfile: docker/gcr/Dockerfile.windows.1809
password:
from_secret: docker_password
repo: plugins/gcr
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
exclude:
- pull_request
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- windows-1809-docker
---
kind: pipeline
name: notifications-gcr
platform:
os: windows
arch: amd64
version: 1809
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
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:
- windows-1803-gcr
- windows-1809-gcr
---
kind: pipeline
name: windows-1803-ecr
platform:
os: windows
arch: amd64
version: 1803
steps:
- name: build-push
pull: always
image: golang:1.11-windowsservercore-1803
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/windows/amd64/drone-ecr.exe ./cmd/drone-ecr"
2019-02-10 12:26:22 +00:00
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
2019-01-21 00:05:01 +00:00
- name: build-tag
pull: always
2019-02-10 12:26:22 +00:00
image: golang:1.11-windowsservercore-1803
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/windows/amd64/drone-ecr.exe ./cmd/drone-ecr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/docker:windows-1803
settings:
2019-02-10 12:26:22 +00:00
daemon_off: true
dockerfile: docker/ecr/Dockerfile.windows.1803
dry_run: true
password:
2019-02-10 12:26:22 +00:00
from_secret: docker_password
2019-01-21 00:05:01 +00:00
repo: plugins/ecr
2019-02-10 12:26:22 +00:00
tags: windows-1803
username:
2019-02-10 12:26:22 +00:00
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/docker:windows-1803
settings:
auto_tag: true
2019-02-10 12:26:22 +00:00
auto_tag_suffix: windows-1803
daemon_off: true
dockerfile: docker/ecr/Dockerfile.windows.1803
password:
2019-02-10 12:26:22 +00:00
from_secret: docker_password
2019-01-21 00:05:01 +00:00
repo: plugins/ecr
username:
2019-02-10 12:26:22 +00:00
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
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:
2019-02-10 12:26:22 +00:00
- windows-1803-docker
2019-01-21 00:05:01 +00:00
---
kind: pipeline
2019-02-10 12:26:22 +00:00
name: windows-1809-ecr
2019-01-21 00:05:01 +00:00
platform:
os: windows
arch: amd64
2019-02-10 12:26:22 +00:00
version: 1809
2019-01-21 00:05:01 +00:00
steps:
- name: build-push
pull: always
2019-02-10 12:26:22 +00:00
image: golang:1.11-windowsservercore-1809
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/windows/amd64/drone-ecr.exe ./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
2019-02-10 12:26:22 +00:00
image: golang:1.11-windowsservercore-1809
commands:
2019-02-15 09:25:21 +00:00
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/windows/amd64/drone-ecr.exe ./cmd/drone-ecr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/docker:windows-1809
settings:
2019-02-10 12:26:22 +00:00
daemon_off: true
dockerfile: docker/ecr/Dockerfile.windows.1809
dry_run: true
password:
2019-02-10 12:26:22 +00:00
from_secret: docker_password
repo: plugins/ecr
tags: windows-1809
username:
2019-02-10 12:26:22 +00:00
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
2019-02-10 12:26:22 +00:00
image: plugins/docker:windows-1809
settings:
auto_tag: true
2019-02-10 12:26:22 +00:00
auto_tag_suffix: windows-1809
daemon_off: true
dockerfile: docker/ecr/Dockerfile.windows.1809
password:
2019-02-10 12:26:22 +00:00
from_secret: docker_password
repo: plugins/ecr
username:
2019-02-10 12:26:22 +00:00
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
2019-02-10 12:26:22 +00:00
exclude:
- pull_request
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- windows-1809-docker
---
kind: pipeline
name: notifications-ecr
platform:
os: windows
arch: amd64
version: 1809
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
settings:
2019-03-27 12:31:52 +00:00
urls:
2019-02-10 12:26:22 +00:00
from_secret: microbadger_ecr
trigger:
2019-02-10 12:26:22 +00:00
ref:
- refs/heads/master
- "refs/tags/**"
2019-01-21 00:05:01 +00:00
depends_on:
2019-02-10 12:26:22 +00:00
- windows-1803-ecr
- windows-1809-ecr
---
kind: pipeline
name: windows-1803-acr
platform:
os: windows
arch: amd64
version: 1803
steps:
- name: build-push
pull: always
image: golang:1.11-windowsservercore-1803
commands:
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-acr.exe ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11-windowsservercore-1803
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-acr.exe ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
- name: dryrun
pull: always
image: plugins/docker:windows-1803
settings:
daemon_off: true
dockerfile: docker/acr/Dockerfile.windows.1803
dry_run: true
password:
from_secret: docker_password
repo: plugins/acr
tags: windows-1803
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- pull_request
- name: publish
pull: always
image: plugins/docker:windows-1803
settings:
auto_tag: true
auto_tag_suffix: windows-1803
daemon_off: true
dockerfile: docker/acr/Dockerfile.windows.1803
password:
from_secret: docker_password
repo: plugins/acr
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
exclude:
- pull_request
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- windows-1803-docker
---
kind: pipeline
name: windows-1809-acr
platform:
os: windows
arch: amd64
version: 1809
steps:
- name: build-push
pull: always
image: golang:1.11-windowsservercore-1809
commands:
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-acr.exe ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-tag
pull: always
image: golang:1.11-windowsservercore-1809
commands:
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -tags netgo -o release/windows/amd64/drone-acr.exe ./cmd/drone-acr"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
- name: dryrun
pull: always
image: plugins/docker:windows-1809
settings:
daemon_off: true
dockerfile: docker/acr/Dockerfile.windows.1809
dry_run: true
password:
from_secret: docker_password
repo: plugins/acr
tags: windows-1809
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- pull_request
- name: publish
pull: always
image: plugins/docker:windows-1809
settings:
auto_tag: true
auto_tag_suffix: windows-1809
daemon_off: true
dockerfile: docker/acr/Dockerfile.windows.1809
password:
from_secret: docker_password
repo: plugins/acr
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
exclude:
- pull_request
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
- "refs/pull/**"
depends_on:
- windows-1809-docker
---
kind: pipeline
name: notifications-acr
platform:
os: windows
arch: amd64
version: 1809
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
settings:
url:
from_secret: microbadger_acr
trigger:
ref:
- refs/heads/master
- "refs/tags/**"
depends_on:
- windows-1803-acr
- windows-1809-acr
2019-02-10 12:26:22 +00:00
...