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