Update .drone.yml
This commit is contained in:
parent
2d3cdfbacf
commit
3f86bf1544
52
.drone.yml
52
.drone.yml
|
@ -3,6 +3,12 @@ kind: pipeline
|
|||
type: exec
|
||||
name: linux-amd64
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
- develop
|
||||
- main
|
||||
|
||||
platform:
|
||||
arch: amd64
|
||||
os: linux
|
||||
|
@ -25,22 +31,6 @@ steps:
|
|||
exclude:
|
||||
- pull_request
|
||||
|
||||
- name: up-pr
|
||||
commands:
|
||||
- docker-compose -f docker-compose.drone.yml up -d --build --force-recreate
|
||||
when:
|
||||
event:
|
||||
include:
|
||||
- pull_request
|
||||
|
||||
- name: test-pr
|
||||
commands:
|
||||
- docker-compose -f docker-compose.drone.yml exec -T photoprism make all test install migrate
|
||||
when:
|
||||
event:
|
||||
include:
|
||||
- pull_request
|
||||
|
||||
- name: test-develop
|
||||
environment:
|
||||
CODECOV_TOKEN:
|
||||
|
@ -81,6 +71,36 @@ steps:
|
|||
branch:
|
||||
- master
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: pull-request
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
platform:
|
||||
arch: amd64
|
||||
os: linux
|
||||
|
||||
steps:
|
||||
- name: up
|
||||
commands:
|
||||
- docker-compose -f docker-compose.drone.yml up -d --build --force-recreate
|
||||
|
||||
- name: test
|
||||
commands:
|
||||
- docker-compose -f docker-compose.drone.yml exec -T photoprism make all test install migrate
|
||||
|
||||
- name: down
|
||||
commands:
|
||||
- docker-compose -f docker-compose.drone.yml down
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
- success
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
|
|
Loading…
Reference in a new issue