194 lines
3.1 KiB
YAML
194 lines
3.1 KiB
YAML
---
|
|
# this file is automatically generated. DO NOT EDIT
|
|
|
|
kind: pipeline
|
|
type: docker
|
|
name: linux-amd64
|
|
|
|
platform:
|
|
arch: amd64
|
|
os: linux
|
|
|
|
steps:
|
|
- name: build
|
|
image: golang:1.10
|
|
commands:
|
|
- cd posix
|
|
- tar -xf fixtures.tar -C /
|
|
- go test -v
|
|
|
|
- name: publish
|
|
image: plugins/docker:18
|
|
settings:
|
|
dockerfile: docker/Dockerfile.linux.amd64
|
|
repo: drone/git
|
|
auto_tag: "true"
|
|
auto_tag_suffix: linux-amd64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: linux-arm64
|
|
|
|
platform:
|
|
arch: arm64
|
|
os: linux
|
|
|
|
steps:
|
|
- name: build
|
|
image: golang:1.10
|
|
commands:
|
|
- cd posix
|
|
- tar -xf fixtures.tar -C /
|
|
- go test -v
|
|
|
|
- name: publish
|
|
image: plugins/docker:18
|
|
settings:
|
|
dockerfile: docker/Dockerfile.linux.arm64
|
|
repo: drone/git
|
|
auto_tag: "true"
|
|
auto_tag_suffix: linux-arm64
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: linux-arm
|
|
|
|
platform:
|
|
arch: arm
|
|
os: linux
|
|
|
|
steps:
|
|
- name: build
|
|
image: golang:1.10
|
|
commands:
|
|
- cd posix
|
|
- tar -xf fixtures.tar -C /
|
|
- go test -v
|
|
|
|
- name: publish
|
|
image: plugins/docker:18
|
|
settings:
|
|
dockerfile: docker/Dockerfile.linux.arm
|
|
repo: drone/git
|
|
auto_tag: "true"
|
|
auto_tag_suffix: linux-arm
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
|
|
---
|
|
kind: pipeline
|
|
type: ssh
|
|
name: windows-1903-amd64
|
|
|
|
platform:
|
|
os: windows
|
|
|
|
server:
|
|
host:
|
|
from_secret: windows_server_1903
|
|
password:
|
|
from_secret: windows_password
|
|
user:
|
|
from_secret: windows_username
|
|
|
|
steps:
|
|
- 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:
|
|
USERNAME:
|
|
from_secret: docker_username
|
|
PASSWORD:
|
|
from_secret: docker_password
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
type: ssh
|
|
name: windows-1809-amd64
|
|
|
|
platform:
|
|
os: windows
|
|
|
|
server:
|
|
host:
|
|
from_secret: windows_server_1809
|
|
password:
|
|
from_secret: windows_password
|
|
user:
|
|
from_secret: windows_username
|
|
|
|
steps:
|
|
- name: build
|
|
commands:
|
|
- docker login -u $env:USERNAME -p $env:PASSWORD
|
|
- docker build -f docker/Dockerfile.windows.1809 -t drone/git:windows-1809-amd64 .
|
|
- docker push drone/git:windows-1809-amd64
|
|
environment:
|
|
USERNAME:
|
|
from_secret: docker_username
|
|
PASSWORD:
|
|
from_secret: docker_password
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: manifest
|
|
|
|
steps:
|
|
- name: manifest
|
|
image: plugins/manifest
|
|
settings:
|
|
auto_tag: "true"
|
|
ignore_missing: "true"
|
|
spec: docker/manifest.tmpl
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- tag
|
|
|
|
depends_on:
|
|
- linux-amd64
|
|
- linux-arm64
|
|
- linux-arm
|
|
- windows-1903-amd64
|
|
- windows-1809-amd64
|