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

46 lines
878 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 secret/TOKEN
when:
branch:
- master
volumes:
- name: docker
path: /var/run/docker.sock
volumes:
- name: docker
host:
path: /var/run/docker.sock