Use CI dockerfile for pushing Docker image

This commit is contained in:
Asher
2020-01-14 15:11:12 -06:00
parent 174cb2f8a9
commit 57425377e5
3 changed files with 23 additions and 9 deletions

View File

@@ -50,12 +50,14 @@ steps:
event: tag
- name: publish:docker
image: banzaicloud/drone-kaniko
image: plugins/docker
settings:
username:
from_secret: docker_user
password:
from_secret: docker_password
repo: codercom/code-server
dockerfile: scripts/ci.dockerfile
tags:
- latest
- v2
@@ -170,17 +172,19 @@ steps:
event: tag
- name: publish:docker
image: banzaicloud/drone-kaniko
image: plugins/docker
settings:
username:
from_secret: docker_user
password:
from_secret: docker_password
repo: codercom/code-server
dockerfile: scripts/ci.dockerfile
tags:
- arm64
- ${DRONE_TAG}-arm64
build_args:
- tag=$DRONE_TAG
- tag=${DRONE_TAG}
when:
event: tag
@@ -289,17 +293,19 @@ steps:
event: tag
- name: publish:docker
image: banzaicloud/drone-kaniko
image: plugins/docker
settings:
username:
from_secret: docker_user
password:
from_secret: docker_password
repo: codercom/code-server
dockerfile: scripts/ci.dockerfile
tags:
- arm
- ${DRONE_TAG}-arm
build_args:
- tag=$DRONE_TAG
- tag=${DRONE_TAG}
when:
event: tag