2019-01-20 23:51:59 +01:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: testing
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: vet
|
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
|
|
|
- go vet ./...
|
|
|
|
environment:
|
|
|
|
GO111MODULE: on
|
2019-02-10 13:26:22 +01:00
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
2019-01-20 23:51:59 +01:00
|
|
|
|
|
|
|
- name: test
|
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
|
|
|
- go test -cover ./...
|
|
|
|
environment:
|
|
|
|
GO111MODULE: on
|
2019-02-10 13:26:22 +01:00
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
path: /go
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: gopath
|
|
|
|
temp: {}
|
2019-01-20 23:51:59 +01:00
|
|
|
|
|
|
|
trigger:
|
2019-02-10 13:26:22 +01:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
2021-03-16 19:26:12 +01:00
|
|
|
- refs/heads/edge-dind
|
|
|
|
- refs/heads/feature-*
|
2019-02-10 13:26:22 +01:00
|
|
|
- "refs/tags/**"
|
|
|
|
- "refs/pull/**"
|
2019-01-20 23:51:59 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-01-21 01:05:01 +01:00
|
|
|
name: linux-amd64-docker
|
2019-01-20 23:51:59 +01:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2019-01-21 01:05:01 +01:00
|
|
|
- name: build-push
|
2019-01-20 23:51:59 +01:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-02-15 10:25:21 +01:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_COMMIT_SHA:0:8}\" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker"
|
2019-01-20 23:51:59 +01:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
2019-02-10 13:26:22 +01:00
|
|
|
exclude:
|
|
|
|
- tag
|
2019-01-20 23:51:59 +01:00
|
|
|
|
2019-01-21 01:05:01 +01:00
|
|
|
- name: build-tag
|
2019-01-20 23:51:59 +01:00
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
2019-02-15 10:25:21 +01:00
|
|
|
- "go build -v -ldflags \"-X main.version=${DRONE_TAG##v}\" -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker"
|
2019-01-20 23:51:59 +01:00
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GO111MODULE: on
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-01-22 23:12:12 +01:00
|
|
|
- name: executable
|
|
|
|
pull: always
|
|
|
|
image: golang:1.11
|
|
|
|
commands:
|
|
|
|
- ./release/linux/amd64/drone-docker --help
|
|
|
|
|
2019-01-21 01:05:01 +01:00
|
|
|
- name: dryrun
|
2019-01-20 23:51:59 +01:00
|
|
|
pull: always
|
2021-03-17 02:22:36 +01:00
|
|
|
image: plugins/docker:linux-amd64
|
2019-01-20 23:51:59 +01:00
|
|
|
settings:
|
2019-02-10 13:26:22 +01:00
|
|
|
daemon_off: false
|
2019-01-20 23:51:59 +01:00
|
|
|
dockerfile: docker/docker/Dockerfile.linux.amd64
|
|
|
|
dry_run: true
|
2021-03-17 02:22:36 +01:00
|
|
|
repo: immawanderer/drone-docker
|
|
|
|
tags: [linux-amd64, edge-dind]
|
2019-01-20 23:51:59 +01:00
|
|
|
when:
|
2021-03-16 21:53:51 +01:00
|
|
|
event: [push, pull_request]
|
2019-01-20 23:51:59 +01:00
|
|
|
|
2019-01-21 01:05:01 +01:00
|
|
|
- name: publish
|
2019-01-20 23:51:59 +01:00
|
|
|
pull: always
|
2021-03-17 02:22:36 +01:00
|
|
|
image: plugins/docker:linux-amd64
|
2019-01-20 23:51:59 +01:00
|
|
|
settings:
|
2019-02-10 13:26:22 +01:00
|
|
|
daemon_off: false
|
2019-01-20 23:51:59 +01:00
|
|
|
dockerfile: docker/docker/Dockerfile.linux.amd64
|
2021-03-17 01:11:36 +01:00
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- edge-dind
|
|
|
|
- linux-amd64
|
|
|
|
- ${DRONE_COMMIT_SHA:0:8}
|
|
|
|
- ${DRONE_COMMIT_SHA:0:8}-edge-dind
|
|
|
|
- ${DRONE_COMMIT_SHA:0:8}-linux-amd64
|
2021-03-16 19:26:12 +01:00
|
|
|
repo: immawanderer/drone-docker
|
2021-03-16 21:53:51 +01:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
2021-03-17 01:11:36 +01:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-01-21 21:17:12 +01:00
|
|
|
when:
|
2021-03-16 21:53:51 +01:00
|
|
|
branch: [edge-dind]
|
2019-01-21 21:17:12 +01:00
|
|
|
event:
|
2019-02-10 13:26:22 +01:00
|
|
|
exclude:
|
|
|
|
- pull_request
|
2019-01-21 21:17:12 +01:00
|
|
|
|
|
|
|
trigger:
|
2019-02-10 13:26:22 +01:00
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
2021-03-16 19:26:12 +01:00
|
|
|
- refs/heads/edge-dind
|
|
|
|
- refs/heads/feature-*
|
2019-02-10 13:26:22 +01:00
|
|
|
- "refs/tags/**"
|
|
|
|
- "refs/pull/**"
|
2019-01-21 21:17:12 +01:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- testing
|
|
|
|
|
2021-02-16 15:44:28 +01:00
|
|
|
...
|