Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
Updates to drone.yml for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Denise Schannon committed Jul 25, 2020
1 parent 561a91d commit 9a4e993
Showing 1 changed file with 52 additions and 79 deletions.
131 changes: 52 additions & 79 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -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
...

0 comments on commit 9a4e993

Please sign in to comment.