Setup Dockerfile automatic build and push.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Madeorsk 2021-08-03 01:41:13 +02:00
parent 78824b5d8d
commit da74034853
1 changed files with 31 additions and 0 deletions

31
.drone.yml Normal file
View File

@ -0,0 +1,31 @@
kind: pipeline
type: docker
name: build-docker-image
steps:
- name: docker-latest
image: plugins/docker
settings:
repo: docker.madeorsk.com/madeorsk/ksr-build
registry: docker.madeorsk.com
username:
from_secret: docker_registry_username
password:
from_secret: docker_registry_password
when:
branch:
- main
- name: docker-tag
image: plugins/docker
settings:
repo: docker.madeorsk.com/madeorsk/ksr-build
tags: ${DRONE_TAG}
registry: docker.madeorsk.com
username:
from_secret: docker_registry_username
password:
from_secret: docker_registry_password
when:
ref:
- refs/tags/*