From c5f736eddff21eb4cff60778cd8d9aaa5938ccd3 Mon Sep 17 00:00:00 2001 From: Gu1llaum-3 Date: Sun, 4 Jun 2023 20:54:48 +0200 Subject: [PATCH] Changes to be committed: new file: .drone.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .drone.yml | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..3a5e54f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,54 @@ +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] \ No newline at end of file