spotdlweb/.drone.yml
Gu1llaum-3 8010de522d
All checks were successful
continuous-integration/drone/push Build is passing
Changes to be committed:
modified:   .drone.yml
	modified:   .gitignore

Changement tag suite au passage en version 2.0.0
2023-06-05 23:11:32 +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
- v2.0.0
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_dev_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_dev_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_dev_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]