2019-01-20 22:51:56 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-01-21 00:04:03 +00:00
|
|
|
name: windows-amd64
|
2019-01-20 22:51:56 +00:00
|
|
|
|
|
|
|
platform:
|
2019-01-21 00:04:03 +00:00
|
|
|
os: windows
|
2019-01-20 22:51:56 +00:00
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:04:03 +00:00
|
|
|
- "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/windows/amd64/drone-s3-sync"
|
2019-01-20 22:51:56 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-01-21 00:04:03 +00:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/windows/amd64/drone-s3-sync"
|
2019-01-20 22:51:56 +00:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: dryrun
|
|
|
|
pull: always
|
2019-01-21 00:04:03 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:56 +00:00
|
|
|
settings:
|
2019-01-21 00:04:03 +00:00
|
|
|
dockerfile: docker/Dockerfile.windows.amd64
|
2019-01-20 22:51:56 +00:00
|
|
|
dry_run: true
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: plugins/s3-sync
|
2019-01-21 00:04:03 +00:00
|
|
|
tags: windows-amd64
|
2019-01-20 22:51:56 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: publish
|
|
|
|
pull: always
|
2019-01-21 00:04:03 +00:00
|
|
|
image: plugins/docker:windows-amd64
|
2019-01-20 22:51:56 +00:00
|
|
|
settings:
|
|
|
|
auto_tag: true
|
2019-01-21 00:04:03 +00:00
|
|
|
auto_tag_suffix: windows-amd64
|
|
|
|
dockerfile: docker/Dockerfile.windows.amd64
|
2019-01-20 22:51:56 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
repo: plugins/s3-sync
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- master
|