From 9a4e9934212cfd371516dc87c1a0963631abefbb Mon Sep 17 00:00:00 2001 From: Denise Schannon Date: Sat, 25 Jul 2020 09:23:55 -0700 Subject: [PATCH] Updates to drone.yml for publishing --- .drone.yml | 131 +++++++++++++++++++++-------------------------------- 1 file changed, 52 insertions(+), 79 deletions(-) diff --git a/.drone.yml b/.drone.yml index c3f8277..afb3f95 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,93 +1,66 @@ ---- kind: pipeline -name: default-amd64 +name: linux-amd64 platform: os: linux arch: amd64 steps: -- name: build - pull: default - image: rancher/dapper:v0.4.1 - commands: - - dapper ci - privileged: true - volumes: - - name: docker - path: /var/run/docker.sock - when: - event: - - push - - pull_request - - tag - -- name: github_binary_release - image: plugins/github-release - settings: - api_key: - from_secret: github_token - prerelease: true - checksum: - - sha256 - checksum_file: CHECKSUMsum-amd64.txt - checksum_flatten: true - files: - - "dist/artifacts/*" - when: - ref: - - refs/head/master - - refs/tags/* - event: - - tag + - name: build + pull: default + image: rancher/dapper:v0.5.2 + commands: + - dapper ci + volumes: + - name: docker + path: /var/run/docker.sock + when: + event: + - push + - pull_request + - tag -- name: docker-publish-head - image: plugins/docker - settings: - build_args: - - ARCH=amd64 - custom_dns: 1.1.1.1 - dockerfile: package/Dockerfile - tag: latest - password: - from_secret: docker_password - repo: cnrancher/webhook-receiver - username: - from_secret: docker_username - when: - ref: - include: - - "refs/heads/master" - event: - - push + - name: github_binary_release + image: plugins/github-release + settings: + api_key: + from_secret: github_token + prerelease: true + checksum: + - sha256 + checksum_file: CHECKSUMsum-amd64.txt + checksum_flatten: true + files: + - "dist/artifacts/*" + when: + instance: + - drone-publish.rancher.io + ref: + - refs/head/master + - refs/tags/* + event: + - tag -- name: docker-publish - image: plugins/docker - settings: - build_args: - - ARCH=amd64 - custom_dns: 1.1.1.1 - dockerfile: package/Dockerfile - password: - from_secret: docker_password - repo: cnrancher/webhook-receiver - tag: "${DRONE_TAG}" - username: - from_secret: docker_username - when: - event: - - tag + - name: docker-publish + image: plugins/docker + settings: + dockerfile: package/Dockerfile + password: + from_secret: docker_password + repo: rancher/webhook-receiver + tag: "${DRONE_TAG}" + username: + from_secret: docker_username + when: + instance: + - drone-publish.rancher.io + refs: + - refs/head/master + - refs/tags/* + event: + - tag volumes: - name: docker host: path: /var/run/docker.sock - -node: - instance: agent-amd64 - -trigger: - event: - exclude: - - promote -...