Adding refresh script, optimizing pipeline, small site change

This commit is contained in:
Firq 2023-03-07 20:38:49 +01:00
parent 9d5ce3cba2
commit 64eb7fe117
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
6 changed files with 85 additions and 3 deletions

View file

@ -1,5 +1,18 @@
update-ip:
image: 3.10.8-slim-buster
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:
- if: $CI_COMMIT_BRANCH == "main"
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)