spotdlweb/.drone.yml
Gu1llaum-3 74e936c0f8
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Changes to be committed:
modified:   .drone.yml
	modified:   app.py
	new file:   docker-compose.yaml
	modified:   static/js/script.js
	new file:   templates/finish_local.html
	renamed:    templates/finish.html -> templates/finish_server.html
	modified:   templates/index.html

Il est maintenant possible de choisir entre télécharger sur le server
ou en local.
2023-06-05 22:56:34 +02:00

93 lines
1.8 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:
branch: main
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:
branch: main
status: [failure]
- 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:
- beta
when:
branch: dev
- name: notify_success
image: curlimages/curl
environment:
NOTIFY_URL:
from_secret: ntfy_url
commands:
- curl -d "La pipeline dev a réussi" $NOTIFY_URL
when:
branch: dev
status: [ success ]
- name: notify_failure
image: curlimages/curl
environment:
NOTIFY_URL:
from_secret: ntfy_url
commands:
- curl -d "La pipeline dev a échoué" $NOTIFY_URL
when:
branch: dev
status: [failure]