ci: add new step

This commit is contained in:
Michael Grote 2023-04-10 18:59:29 +02:00
parent 66e32a9412
commit 9cf4b00ab3

View file

@ -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