From a04161efc6dce5ef7cf7316e01228be651ca815d Mon Sep 17 00:00:00 2001 From: Gyorgy Berenyi Date: Fri, 8 Dec 2023 09:35:40 +0000 Subject: [PATCH] added drone file --- .drone.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3ea3fb5 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file