Compare commits
2 Commits
dbef43e1a8
...
6d689bc6f7
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | 6d689bc6f7 | |
Lukáš Kucharczyk | a2ecdcf44a |
21
.drone.yml
21
.drone.yml
|
@ -11,17 +11,20 @@ steps:
|
||||||
- poetry install
|
- poetry install
|
||||||
- poetry env info
|
- poetry env info
|
||||||
- poetry run pytest
|
- poetry run pytest
|
||||||
- name: build container (prod)
|
|
||||||
|
- name: build-prod
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: registry.kucharczyk.xyz/timetracker
|
repo: registry.kucharczyk.xyz/timetracker
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
|
depends_on:
|
||||||
|
- "test"
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
- name: build container (non-prod)
|
- name: build-non-prod
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: registry.kucharczyk.xyz/timetracker
|
repo: registry.kucharczyk.xyz/timetracker
|
||||||
|
@ -32,9 +35,21 @@ steps:
|
||||||
branch:
|
branch:
|
||||||
exclude:
|
exclude:
|
||||||
- main
|
- main
|
||||||
|
depends_on:
|
||||||
|
- "test"
|
||||||
|
|
||||||
|
- name: redeploy on portainer
|
||||||
|
image: plugins/webhook
|
||||||
|
settings:
|
||||||
|
urls:
|
||||||
|
from_secret: PORTAINER_TIMETRACKER_WEBHOOK_URL
|
||||||
|
method: GET
|
||||||
|
depends_on:
|
||||||
|
- "build-prod"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- cron
|
- cron
|
||||||
|
|
Loading…
Reference in New Issue