Setup Dockerfile automatic build and push.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
78824b5d8d
commit
da74034853
31
.drone.yml
Normal file
31
.drone.yml
Normal 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/*
|
Loading…
Reference in New Issue
Block a user