spotdlweb/.drone.yml
Gu1llaum-3 c5f736eddf
All checks were successful
continuous-integration/drone/push Build is passing
Changes to be committed:
new file:   .drone.yml

Changes not staged for commit:
	deleted:    __pycache__/app.cpython-310.pyc
	modified:   templates/index.html

Suppression de deux entrées sur cinq au niveau de index.html
2023-06-04 20:54:48 +02:00

54 lines
1.0 KiB
YAML

kind: pipeline
name: default
steps:
- name: docker_gitea
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: git.netpowa.fr/guillaume/spotdlweb
# auto_tag: true
registry: git.netpowa.fr
tags:
- latest
- v1.0.1
when:
branch: main
- name: docker_hub
image: plugins/docker
settings:
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
repo: gu1llaum3/spotdlweb
# auto_tag: true
tags:
- latest
- v1.0.1
when:
branch: main
- name: notify_success
image: curlimages/curl
environment:
NOTIFY_URL:
from_secret: ntfy_url
commands:
- curl -d "La pipeline a réussi" $NOTIFY_URL
when:
status: [ success ]
- name: notify_failure
image: curlimages/curl
environment:
NOTIFY_URL:
from_secret: ntfy_url
commands:
- curl -d "La pipeline a échoué" $NOTIFY_URL
when:
status: [failure]