Adding refresh script, optimizing pipeline, small site change
This commit is contained in:
parent
9d5ce3cba2
commit
64eb7fe117
6 changed files with 85 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue