Neshuras changes
This commit is contained in:
parent
751d20178d
commit
4ef01d796b
1 changed files with 8 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue