ci: add dockerhub
This commit is contained in:
parent
8e5810c8b5
commit
f645184ce0
1 changed files with 36 additions and 0 deletions
36
.drone.yml
36
.drone.yml
|
@ -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
|
||||
|
|
Reference in a new issue