From 4ef01d796bc69f53ca3d96ca413b23ec59840e0f Mon Sep 17 00:00:00 2001 From: Firq Date: Sat, 11 Mar 2023 01:04:56 +0100 Subject: [PATCH] Neshuras changes --- .gitlab-ci.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b399a77..e6763e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,21 +2,6 @@ stages: - deploy - notification -update-ip: - stage: .post - image: python:3.10.8-slim-buster - rules: - - if: '$NEW_IP != ""' - allow_failure: true - when: manual - before_script: - - apt-get update - - apt-get install -y python3-pip - - python --version - - pip install -r requirements.txt - script: - - python cloudflare-updater.py $CF_API_TOKEN $NEW_IP - deploy-site: stage: deploy rules: @@ -36,6 +21,10 @@ deploy-site: success_notification: stage: notification + before_script: + - apt update + - apt install curl + - apt install git script: - wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh - chmod +x send.sh @@ -43,6 +32,10 @@ success_notification: when: on_success failure_notification: stage: notification + before_script: + - apt update + - apt install curl + - apt install git script: - wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh - chmod +x send.sh