attempt windows 1903 build

This commit is contained in:
Brad Rydzewski 2019-08-06 10:06:46 -07:00
parent 8f0278c190
commit 47ba7912a0
2 changed files with 37 additions and 126 deletions

View File

@ -1,153 +1,58 @@
--- ---
kind: pipeline # this file is automaticall generated. DO NOT EDIT
name: linux-amd64
platform:
os: linux
arch: amd64
steps:
- name: test
image: golang:1.10
commands:
- cd posix
- tar -xf fixtures.tar -C /
- go test -v
- name: push
image: plugins/docker
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
dockerfile: docker/Dockerfile.linux.amd64
password:
from_secret: docker_password
repo: drone/git
username: drone
when:
event:
- push
- tag
---
kind: pipeline
name: linux-arm64
platform:
os: linux
arch: arm64
steps:
- name: test
image: golang:1.10
commands:
- cd posix
- tar -xf fixtures.tar -C /
- go test -v
- name: push
image: plugins/docker:linux-arm64
settings:
auto_tag: true
auto_tag_suffix: linux-arm64
dockerfile: docker/Dockerfile.linux.arm64
password:
from_secret: docker_password
repo: drone/git
username: drone
when:
event:
- push
- tag
---
kind: pipeline
name: linux-arm
platform:
os: linux
arch: arm
steps:
- name: test
image: golang:1.10
commands:
- cd posix
- tar -xf fixtures.tar -C /
- go test -v
- name: push
image: plugins/docker:linux-arm
settings:
auto_tag: true
auto_tag_suffix: linux-arm
dockerfile: docker/Dockerfile.linux.arm
password:
from_secret: docker_password
repo: drone/git
username: drone
when:
event:
- push
- tag
---
kind: pipeline kind: pipeline
type: ssh type: ssh
name: windows-1809-amd64 name: windows-1903-amd64
platform: platform:
os: windows os: windows
server: server:
host: host:
from_secret: windows_1809_server from_secret: windows_server_1903
user:
from_secret: windows_1809_username
password: password:
from_secret: windows_1809_password from_secret: windows_password
user:
from_secret: windows_username
steps: steps:
- name: docker - name: build
commands:
- docker login -u $env:USERNAME -p $env:PASSWORD
- docker build -f docker/Dockerfile.windows.1903 -t drone/git:windows-1903-amd64 .
- docker push drone/git:windows-1903-amd64
environment: environment:
USERNAME:
from_secret: docker_username
PASSWORD: PASSWORD:
from_secret: docker_password from_secret: docker_password
commands:
- docker login -u drone -p $PASSWORD trigger:
- docker build -f docker/Dockerfile.windows.1809 -t drone/git:windows-1809-amd64 . event:
- docker push drone/git:windows-1809-amd64 - push
when:
event:
- push
- tag
--- ---
kind: pipeline kind: pipeline
name: after type: docker
name: manifest
platform:
os: linux
arch: amd64
steps: steps:
- name: manifest - name: manifest
image: plugins/manifest:1 image: plugins/manifest
settings: settings:
ignore_missing: true auto_tag: "true"
ignore_missing: "true"
spec: docker/manifest.tmpl
username:
from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
spec: docker/manifest.tmpl
username: drone trigger:
when: event:
branch: - push
- master - tag
event:
- push
depends_on: depends_on:
- linux-arm - windows-1903-amd64
- linux-arm64
- linux-amd64
- windows-1809-amd64
...

View File

@ -35,3 +35,9 @@ manifests:
architecture: amd64 architecture: amd64
os: windows os: windows
version: 1809 version: 1809
-
image: drone/git:windows-1903-amd64
platform:
architecture: amd64
os: windows
version: 1903