Files
installer-tool/.drone.yml
gyurix 9eda136ce5
All checks were successful
continuous-integration/drone/push Build is passing
testing drone
2024-06-13 11:27:06 +02:00

46 lines
872 B
YAML

kind: pipeline
name: default
trigger:
branch:
- master
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:
- master
volumes:
- name: docker
path: /var/run/docker.sock
- name: update public installer repository
image: alpine:latest
commands:
- apk --update add curl
- echo $TOKEN
when:
branch:
- master
volumes:
- name: docker
path: /var/run/docker.sock
volumes:
- name: docker
host:
path: /var/run/docker.sock