Neshuras changes

This commit is contained in:
Firq 2023-03-11 01:04:56 +01:00
parent 751d20178d
commit 4ef01d796b
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20

View file

@ -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