ci: add dockerhub

This commit is contained in:
Michael Grote 2023-06-08 14:21:40 +02:00
parent 8e5810c8b5
commit f645184ce0

View file

@ -39,6 +39,26 @@ steps:
- pull_request
- tag
- name: docker_build_and_push_dockerhub
image: thegeeklab/drone-docker-buildx:23
privileged: true
settings:
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
repo: quotengrote/mdns-repeater-mikrotik
tags:
- ${DRONE_COMMIT_SHA:0:8}
- ${DRONE_COMMIT_BRANCH}
- latest
when:
event:
exclude:
- pull_request
- tag
- name: docker_build_and_push_selfhosted_tag
image: thegeeklab/drone-docker-buildx:23
privileged: true
@ -51,3 +71,19 @@ steps:
when:
event:
- tag
- name: docker_build_and_push_dockerhub_tag
image: thegeeklab/drone-docker-buildx:23
privileged: true
settings:
username:
from_secret: DOCKERHUB_USER
password:
from_secret: DOCKERHUB_PASS
dockerfile: Dockerfile
repo: quotengrote/mdns-repeater-mikrotik
tags:
- ${DRONE_TAG}
when:
event:
- tag