Compare commits

...

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk 6d689bc6f7 ci: use get method
continuous-integration/drone/push Build is passing Details
2023-10-04 20:22:10 +02:00
Lukáš Kucharczyk a2ecdcf44a ci: automatically redeploy container
continuous-integration/drone/push Build was killed Details
2023-10-04 20:21:00 +02:00
1 changed files with 18 additions and 3 deletions

View File

@ -11,17 +11,20 @@ steps:
- poetry install
- poetry env info
- poetry run pytest
- name: build container (prod)
- name: build-prod
image: plugins/docker
settings:
repo: registry.kucharczyk.xyz/timetracker
tags:
- latest
depends_on:
- "test"
when:
branch:
- main
- name: build container (non-prod)
- name: build-non-prod
image: plugins/docker
settings:
repo: registry.kucharczyk.xyz/timetracker
@ -32,6 +35,18 @@ steps:
branch:
exclude:
- 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: