refactor(drone): update plugins/docker image for release process (#313)

This commit is contained in:
Bo-Yi Wu 2017-12-09 17:44:02 +08:00 committed by GitHub
parent bd6a6f7eba
commit 25becd0810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 53 deletions

View File

@ -71,77 +71,42 @@ pipeline:
- make release
when:
event: [ tag ]
ref: [ refs/tags/* ]
publish_linux_amd64:
image: plugins/docker
group: publish
repo: ${DRONE_REPO}
tags: [ 'latest' ]
secrets: [ docker_username, docker_password ]
when:
event: [ push ]
branch: [ master ]
local: false
publish_linux_arm:
image: plugins/docker
group: publish
repo: ${DRONE_REPO}
tags: [ linux-arm ]
dockerfile: Dockerfile.arm
secrets: [ docker_username, docker_password ]
when:
event: [ push ]
branch: [ master ]
local: false
publish_linux_arm64:
image: plugins/docker
group: publish
repo: ${DRONE_REPO}
tags: [ linux-arm64 ]
dockerfile: Dockerfile.arm64
secrets: [ docker_username, docker_password ]
when:
event: [ push ]
branch: [ master ]
local: false
publish_linux_amd64:
image: plugins/docker
group: tag
repo: ${DRONE_REPO}
tags: [ '${DRONE_TAG}' ]
secrets: [ docker_username, docker_password ]
group: release
pull: true
secrets: [ docker_username, docker_password ]
default_tags: true
repo: ${DRONE_REPO}
when:
event: [ tag ]
ref: [ refs/tags/* ]
event: [ push, tag ]
local: false
publish_linux_arm:
image: plugins/docker
group: tag
repo: ${DRONE_REPO}
tags: [ linux-arm, 'linux-arm-${DRONE_TAG}' ]
group: release
pull: true
dockerfile: Dockerfile.arm
secrets: [ docker_username, docker_password ]
default_tags: true
default_suffix: arm
repo: ${DRONE_REPO}
when:
event: [ tag ]
ref: [ refs/tags/* ]
event: [ push, tag ]
local: false
publish_linux_arm64:
image: plugins/docker
group: tag
repo: ${DRONE_REPO}
tags: [ linux-arm64, 'linux-arm64-${DRONE_TAG}' ]
group: release
pull: true
dockerfile: Dockerfile.arm64
secrets: [ docker_username, docker_password ]
default_tags: true
default_suffix: arm64
repo: ${DRONE_REPO}
when:
event: [ tag ]
ref: [ refs/tags/* ]
event: [ push, tag ]
local: false
release_tag:
@ -152,7 +117,6 @@ pipeline:
- dist/release/*
when:
event: [ tag ]
ref: [ refs/tags/* ]
local: false
discord: