added drone and nginx files

This commit is contained in:
gyurix
2024-06-28 12:09:39 +02:00
parent a54bd40abb
commit 4ff5cc2728
3 changed files with 144 additions and 0 deletions

33
.drone.yml Normal file
View File

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