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
|
- deploy
|
||||||
- notification
|
- 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:
|
deploy-site:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
rules:
|
rules:
|
||||||
|
@ -36,6 +21,10 @@ deploy-site:
|
||||||
|
|
||||||
success_notification:
|
success_notification:
|
||||||
stage: notification
|
stage: notification
|
||||||
|
before_script:
|
||||||
|
- apt update
|
||||||
|
- apt install curl
|
||||||
|
- apt install git
|
||||||
script:
|
script:
|
||||||
- wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh
|
- wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh
|
||||||
- chmod +x send.sh
|
- chmod +x send.sh
|
||||||
|
@ -43,6 +32,10 @@ success_notification:
|
||||||
when: on_success
|
when: on_success
|
||||||
failure_notification:
|
failure_notification:
|
||||||
stage: notification
|
stage: notification
|
||||||
|
before_script:
|
||||||
|
- apt update
|
||||||
|
- apt install curl
|
||||||
|
- apt install git
|
||||||
script:
|
script:
|
||||||
- wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh
|
- wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh
|
||||||
- chmod +x send.sh
|
- chmod +x send.sh
|
||||||
|
|
Loading…
Reference in a new issue