From a0a0d0a7f99907f5bab5165c615208bf95ab1f96 Mon Sep 17 00:00:00 2001 From: Don Date: Thu, 24 Jan 2019 19:08:07 -0800 Subject: [PATCH] Update linux yaml --- .drone.yml | 253 ++--------------------------------------------------- 1 file changed, 6 insertions(+), 247 deletions(-) diff --git a/.drone.yml b/.drone.yml index fbc695c..cf14c00 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,250 +23,6 @@ steps: environment: GO111MODULE: on -trigger: - branch: - - master - ---- -kind: pipeline -name: linux-amd64 - -platform: - os: linux - arch: amd64 - -steps: -- name: build-push - pull: always - image: golang:1.11 - commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/linux/amd64/drone-webhook" - environment: - CGO_ENABLED: 0 - GO111MODULE: on - when: - event: - - push - - pull_request - -- name: build-tag - pull: always - image: golang:1.11 - commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/linux/amd64/drone-webhook" - environment: - CGO_ENABLED: 0 - GO111MODULE: on - when: - event: - - tag - -- name: executable - pull: always - image: golang:1.11 - commands: - - ./release/linux/amd64/drone-webhook --help - -- name: dryrun - pull: always - image: plugins/docker:linux-amd64 - settings: - dockerfile: docker/Dockerfile.linux.amd64 - dry_run: true - password: - from_secret: docker_password - repo: plugins/webhook - tags: linux-amd64 - username: - from_secret: docker_username - when: - event: - - pull_request - -- name: publish - pull: always - image: plugins/docker:linux-amd64 - settings: - auto_tag: true - auto_tag_suffix: linux-amd64 - dockerfile: docker/Dockerfile.linux.amd64 - password: - from_secret: docker_password - repo: plugins/webhook - username: - from_secret: docker_username - when: - event: - - push - - tag - -trigger: - branch: - - master - -depends_on: -- testing - ---- -kind: pipeline -name: linux-arm64 - -platform: - os: linux - arch: arm64 - -steps: -- name: build-push - pull: always - image: golang:1.11 - commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/linux/arm64/drone-webhook" - environment: - CGO_ENABLED: 0 - GO111MODULE: on - when: - event: - - push - - pull_request - -- name: build-tag - pull: always - image: golang:1.11 - commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/linux/arm64/drone-webhook" - environment: - CGO_ENABLED: 0 - GO111MODULE: on - when: - event: - - tag - -- name: executable - pull: always - image: golang:1.11 - commands: - - ./release/linux/arm64/drone-webhook --help - -- name: dryrun - pull: always - image: plugins/docker:linux-arm64 - settings: - dockerfile: docker/Dockerfile.linux.arm64 - dry_run: true - password: - from_secret: docker_password - repo: plugins/webhook - tags: linux-arm64 - username: - from_secret: docker_username - when: - event: - - pull_request - -- name: publish - pull: always - 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: plugins/webhook - username: - from_secret: docker_username - when: - event: - - push - - tag - -trigger: - branch: - - master - -depends_on: -- testing - ---- -kind: pipeline -name: linux-arm - -platform: - os: linux - arch: arm - -steps: -- name: build-push - pull: always - image: golang:1.11 - commands: - - "go build -v -ldflags \"-X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/linux/arm/drone-webhook" - environment: - CGO_ENABLED: 0 - GO111MODULE: on - when: - event: - - push - - pull_request - -- name: build-tag - pull: always - image: golang:1.11 - commands: - - "go build -v -ldflags \"-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}\" -a -o release/linux/arm/drone-webhook" - environment: - CGO_ENABLED: 0 - GO111MODULE: on - when: - event: - - tag - -- name: executable - pull: always - image: golang:1.11 - commands: - - ./release/linux/arm/drone-webhook --help - -- name: dryrun - pull: always - image: plugins/docker:linux-arm - settings: - dockerfile: docker/Dockerfile.linux.arm - dry_run: true - password: - from_secret: docker_password - repo: plugins/webhook - tags: linux-arm - username: - from_secret: docker_username - when: - event: - - pull_request - -- name: publish - pull: always - 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: plugins/webhook - username: - from_secret: docker_username - when: - event: - - push - - tag - -trigger: - branch: - - master - -depends_on: -- testing - --- kind: pipeline name: notifications @@ -286,6 +42,9 @@ steps: spec: docker/manifest.tmpl username: from_secret: docker_username + when: + event: + - push - name: microbadger pull: always @@ -293,13 +52,13 @@ steps: settings: url: from_secret: microbadger_url + when: + event: + - push trigger: branch: - master - event: - - push - - tag depends_on: - linux-amd64