MOAR FIXES
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
37a2c8851a
commit
417837da00
19
.drone.yml
19
.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,16 +35,18 @@ steps:
|
||||||
branch:
|
branch:
|
||||||
exclude:
|
exclude:
|
||||||
- main
|
- main
|
||||||
|
depends_on:
|
||||||
|
- "test"
|
||||||
|
|
||||||
- name: redeploy on portainer
|
- name: redeploy on portainer
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
|
||||||
urls: [ https://portainer.kucharczyk.xyz/api/webhooks/$ID ]
|
|
||||||
depends_on:
|
|
||||||
- "build container (non-prod)"
|
|
||||||
environment:
|
environment:
|
||||||
ID:
|
WEBHOOK_ID:
|
||||||
from_secret: PORTAINER_TIMETRACKER_WEBHOOK_ID
|
from_secret: PORTAINER_TIMETRACKER_WEBHOOK_ID
|
||||||
|
settings:
|
||||||
|
urls: [ https://portainer.kucharczyk.xyz/api/webhooks/$WEBHOOK_ID ]
|
||||||
|
depends_on:
|
||||||
|
- "build-prod"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue