ci: add new step
This commit is contained in:
parent
66e32a9412
commit
9cf4b00ab3
1 changed files with 18 additions and 1 deletions
19
.drone.yml
19
.drone.yml
|
@ -14,7 +14,7 @@ steps:
|
|||
- hadolint --version
|
||||
- hadolint Dockerfile
|
||||
|
||||
- name: docker_build_and_push
|
||||
- name: docker_build_and_push_master
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
|
@ -33,3 +33,20 @@ steps:
|
|||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
||||
- name: docker_build_and_push
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: DOCKERHUB_USER
|
||||
password:
|
||||
from_secret: DOCKERHUB_PASS
|
||||
dockerfile: Dockerfile
|
||||
repo: quotengrote/fpm
|
||||
tags:
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
- ${DRONE_COMMIT_BRANCH}
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
|
|
Loading…
Reference in a new issue