JPHD-2021-backend/.drone.yml

47 lines
619 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

kind: pipeline
type: docker
name: build
steps:
- name: build
image: docker
commands:
- docker build -t eva-jphd-backend .
volumes:
- name: cache
path: /var/run/docker.sock
trigger:
branch:
- master
- dev
event:
- push
- pull_request
- rollback
volumes:
- name: cache
host:
path: /var/run/docker.sock
---
kind: pipeline
type: exec
name: deploy
platform:
os: linux
arзуh: amd64
steps:
- name: deploy
commands:
- cd /app/dockerapps/JPHD-backend-2021/
- docker-compose up -d
- docker image prune -f
depends_on:
- build