update release process in drone.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-10-28 14:44:51 +08:00
parent 18921b6ac3
commit 5ed2f75c17
1 changed files with 25 additions and 1 deletions

View File

@ -108,7 +108,7 @@ pipeline:
branch: [ master ]
local: false
publish_tag_linux_amd64:
publish_linux_amd64:
image: plugins/docker
group: tag
repo: ${DRONE_REPO}
@ -120,6 +120,30 @@ pipeline:
ref: [ refs/tags/* ]
local: false
publish_linux_arm:
image: plugins/docker
group: tag
repo: ${DRONE_REPO}
tags: [ linux-arm, 'linux-arm-${DRONE_TAG}' ]
dockerfile: Dockerfile.arm
secrets: [ docker_username, docker_password ]
when:
event: [ tag ]
ref: [ refs/tags/* ]
local: false
publish_linux_arm64:
image: plugins/docker
group: tag
repo: ${DRONE_REPO}
tags: [ linux-arm64, 'linux-arm64-${DRONE_TAG}' ]
dockerfile: Dockerfile.arm64
secrets: [ docker_username, docker_password ]
when:
event: [ tag ]
ref: [ refs/tags/* ]
local: false
release_tag:
image: plugins/github-release
secrets: [ github_release_api_key ]