added drone file

This commit is contained in:
Gyorgy Berenyi
2023-12-08 09:35:40 +00:00
parent 5a11841202
commit a04161efc6

30
.drone.yml Normal file
View File

@@ -0,0 +1,30 @@
kind: pipeline
name: default
trigger:
branch:
- main
event:
- push
workspace:
path: /drone/src
environment:
IMAGE_NAME: installer-tool
DOCKER_REGISTRY_URL: registry.format.hu
steps:
- name: build demo image
image: plugins/docker
commands:
- cd /drone/src/
- docker build -t $${DOCKER_REGISTRY_URL}/$${IMAGE_NAME} -f Dockerfile .
- docker push $${DOCKER_REGISTRY_URL}/$${IMAGE_NAME}
when:
branch:
- main
volumes:
- name: docker
path: /var/run/docker.sock