0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-14 09:00:43 +00:00
wp-docker-buildx/.drone.windows.yml

299 lines
5.8 KiB
YAML
Raw Normal View History

---
kind: pipeline
2019-01-21 00:05:01 +00:00
name: windows-amd64-docker
platform:
2019-01-21 00:05:01 +00:00
os: windows
arch: amd64
steps:
2019-01-21 00:05:01 +00:00
- name: build-push
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"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- push
- pull_request
2019-01-21 00:05:01 +00:00
- name: build-tag
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"
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/windows/amd64/drone-docker --help
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
2019-01-21 00:05:01 +00:00
image: plugins/docker:windows-amd64
settings:
2019-01-21 00:05:01 +00:00
dockerfile: docker/docker/Dockerfile.windows.amd64
dry_run: true
password:
from_secret: docker_password
repo: plugins/docker
2019-01-21 00:05:01 +00:00
tags: windows-amd64
username:
from_secret: docker_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
2019-01-21 00:05:01 +00:00
image: plugins/docker:windows-amd64
settings:
auto_tag: true
2019-01-21 00:05:01 +00:00
auto_tag_suffix: windows-amd64
dockerfile: docker/docker/Dockerfile.windows.amd64
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
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"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- push
- pull_request
2019-01-21 00:05:01 +00:00
- name: build-tag
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"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
2019-01-21 00:05:01 +00:00
image: plugins/docker:windows-amd64
settings:
dry_run: true
2019-01-21 00:05:01 +00:00
gcrfile: docker/gcr/Dockerfile.windows.amd64
password:
2019-01-21 00:05:01 +00:00
from_secret: gcr_password
repo: plugins/gcr
tags: windows-amd64
username:
2019-01-21 00:05:01 +00:00
from_secret: gcr_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
2019-01-21 00:05:01 +00:00
image: plugins/docker:windows-amd64
settings:
auto_tag: true
2019-01-21 00:05:01 +00:00
auto_tag_suffix: windows-amd64
gcrfile: docker/gcr/Dockerfile.windows.amd64
password:
2019-01-21 00:05:01 +00:00
from_secret: gcr_password
repo: plugins/gcr
username:
2019-01-21 00:05:01 +00:00
from_secret: gcr_username
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
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"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- push
- pull_request
2019-01-21 00:05:01 +00:00
- name: build-tag
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"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
2019-01-21 00:05:01 +00:00
image: plugins/docker:windows-amd64
settings:
2019-01-21 00:05:01 +00:00
dockerfile: docker/ecr/Dockerfile.windows.amd64
dry_run: true
password:
2019-01-21 00:05:01 +00:00
from_secret: ecr_password
repo: plugins/ecr
tags: windows-amd64
username:
2019-01-21 00:05:01 +00:00
from_secret: ecr_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
2019-01-21 00:05:01 +00:00
image: plugins/docker:windows-amd64
settings:
auto_tag: true
2019-01-21 00:05:01 +00:00
auto_tag_suffix: windows-amd64
dockerfile: docker/ecr/Dockerfile.windows.amd64
password:
2019-01-21 00:05:01 +00:00
from_secret: ecr_password
repo: plugins/ecr
username:
2019-01-21 00:05:01 +00:00
from_secret: ecr_username
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
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"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- push
- pull_request
2019-01-21 00:05:01 +00:00
- name: build-tag
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"
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
- tag
2019-01-21 00:05:01 +00:00
- name: dryrun
pull: always
2019-01-21 00:05:01 +00:00
image: plugins/docker:windows-amd64
settings:
dry_run: true
2019-01-21 00:05:01 +00:00
herokufile: docker/heroku/Dockerfile.windows.amd64
password:
2019-01-21 00:05:01 +00:00
from_secret: heroku_password
repo: plugins/heroku
tags: windows-amd64
username:
2019-01-21 00:05:01 +00:00
from_secret: heroku_username
when:
event:
- pull_request
2019-01-21 00:05:01 +00:00
- name: publish
pull: always
2019-01-21 00:05:01 +00:00
image: plugins/docker:windows-amd64
settings:
auto_tag: true
2019-01-21 00:05:01 +00:00
auto_tag_suffix: windows-amd64
herokufile: docker/heroku/Dockerfile.windows.amd64
password:
2019-01-21 00:05:01 +00:00
from_secret: heroku_password
repo: plugins/heroku
username:
2019-01-21 00:05:01 +00:00
from_secret: heroku_username
when:
event:
- push
- tag
trigger:
branch:
- master
2019-01-21 00:05:01 +00:00
depends_on:
- windows-amd64-docker