init
This commit is contained in:
110
Rss/.drone.yml
Normal file
110
Rss/.drone.yml
Normal file
@@ -0,0 +1,110 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy
|
||||
|
||||
environment:
|
||||
PACKAGE: Rss
|
||||
URL: rss.alexlebens.net
|
||||
|
||||
steps:
|
||||
- name: Tests
|
||||
image: ps03fd.alexlebens.net:5000/droneimage:latest
|
||||
commands:
|
||||
- /scripts/tests.sh
|
||||
|
||||
- name: Nofification > Discord | Tests - Failure
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
username: DroneCI - ps03fd
|
||||
message: Docker compose validation for Rss failed.
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
|
||||
- name: Configuration
|
||||
image: ps03fd.alexlebens.net:5000/droneimage:latest
|
||||
commands:
|
||||
- mkdir ~/.ssh/
|
||||
- echo "$SSH_KEY" > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan -H $HOST_IP >> ~/.ssh/known_hosts
|
||||
- /scripts/configuration.sh
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: ssh_key_ps03fd_drone
|
||||
DOCKER_HOST:
|
||||
from_secret: docker_host_ps03fd
|
||||
HOST_IP:
|
||||
from_secret: host_ip_ps03fd
|
||||
UPTIMEKUMA_NAME:
|
||||
from_secret: uptimekuma_name
|
||||
UPTIMEKUMA_PASSWORD:
|
||||
from_secret: uptimekuma_password
|
||||
UPTIMEKUMA_URL:
|
||||
from_secret: uptimekuma_url
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
- name: Nofification > Discord | Configuration - Failure
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
username: DroneCI - ps03fd
|
||||
message: Configuration for Rss failed.
|
||||
when:
|
||||
status:
|
||||
- failure
|
||||
|
||||
- name: Deploy
|
||||
image: ps03fd.alexlebens.net:5000/droneimage:latest
|
||||
commands:
|
||||
- mkdir ~/.ssh/
|
||||
- echo "$SSH_KEY" > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan -H $HOST_IP >> ~/.ssh/known_hosts
|
||||
- /scripts/deploy.sh
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: ssh_key_ps03fd_drone
|
||||
DOCKER_HOST:
|
||||
from_secret: docker_host_ps03fd
|
||||
HOST_IP:
|
||||
from_secret: host_ip_ps03fd
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
|
||||
- name: Nofification > Discord | Deploy - Success
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
username: DroneCI - ps03fd
|
||||
message: Docker compose deployment for Rss succeeded
|
||||
when:
|
||||
status:
|
||||
- sucess
|
||||
|
||||
- name: Nofification > Discord | Deploy - Failure
|
||||
image: appleboy/drone-discord
|
||||
settings:
|
||||
webhook_id:
|
||||
from_secret: discord_webhook_id
|
||||
webhook_token:
|
||||
from_secret: discord_webhook_token
|
||||
username: DroneCI - ps03fd
|
||||
message: Docker compose deployment for Rss failed.
|
||||
when:
|
||||
status:
|
||||
- failure
|
24
Rss/Files/rss_storage/feeds.txt
Normal file
24
Rss/Files/rss_storage/feeds.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
https://noted.lol/rss Noted⭐[#9233B1] #Self-Hosting
|
||||
https://www.linuxserver.io/blog.rss Linux-Server[#0078b9] #Self-Hosting
|
||||
https://blog.networkprofile.org/rss Network-Profile[#D48D27] #Self-Hosting
|
||||
|
||||
https://tftcentral.co.uk/feed TFT #Tech
|
||||
|
||||
https://www.axios.com/feeds/feed.rss Axios #News #World
|
||||
|
||||
https://www.cpr.org/feed CPR #News #Local
|
||||
https://www.mprnews.org/feed/homepage MPR #News #Local
|
||||
|
||||
https://feeds.washingtonpost.com/rss/world?itid=lk_inline_manual_36 WaPo #News #World
|
||||
https://feeds.washingtonpost.com/rss/national?itid=lk_inline_manual_32 WaPo #News #National
|
||||
https://feeds.washingtonpost.com/rss/business/technology?itid=lk_inline_manual_31 WaPo #News #Tech
|
||||
https://feeds.washingtonpost.com/rss/politics?itid=lk_inline_manual_2 WaPo #News #Politics
|
||||
|
||||
https://rss.nytimes.com/services/xml/rss/nyt/World.xml NYT #News #World
|
||||
https://rss.nytimes.com/services/xml/rss/nyt/US.xml NYT #News #National
|
||||
https://rss.nytimes.com/services/xml/rss/nyt/Politics.xml NYT #News #Politics
|
||||
https://rss.nytimes.com/services/xml/rss/nyt/Technology.xml NYT #News #Tech
|
||||
https://rss.nytimes.com/services/xml/rss/nyt/Science.xml NYT #News #Science
|
||||
|
||||
https://breakingdefense.com/full-rss-feed/?v=2 Breaking-Defense #Defense
|
||||
https://www.thedrive.com/the-war-zone/feed The-War-Zone #Defense
|
3
Rss/README.md
Normal file
3
Rss/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Rss
|
||||
|
||||
[](https://drone.alexlebens.net/alexlebens/Rss)
|
17
Rss/UptimeKuma/docker-1.json
Normal file
17
Rss/UptimeKuma/docker-1.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"type": "docker",
|
||||
"name": "Rss - Docker",
|
||||
"interval": 60,
|
||||
"retryInterval": 20,
|
||||
"maxretries": 1,
|
||||
"notificationIDList": [
|
||||
3,
|
||||
4
|
||||
],
|
||||
"url": "https://rss.alexlebens.net",
|
||||
"accepted_statuscodes": [
|
||||
"200-299"
|
||||
],
|
||||
"docker_container": "rss",
|
||||
"docker_host": 1
|
||||
}
|
15
Rss/UptimeKuma/http-1.json
Normal file
15
Rss/UptimeKuma/http-1.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"type": "http",
|
||||
"name": "Rss - Web",
|
||||
"interval": 60,
|
||||
"retryInterval": 20,
|
||||
"maxretries": 1,
|
||||
"notificationIDList": [
|
||||
3,
|
||||
4
|
||||
],
|
||||
"url": "https://rss.alexlebens.net",
|
||||
"accepted_statuscodes": [
|
||||
"200-299"
|
||||
]
|
||||
}
|
36
Rss/docker-compose.yml
Normal file
36
Rss/docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
services:
|
||||
rss:
|
||||
container_name: rss
|
||||
environment:
|
||||
- APP_NAME=RSS
|
||||
image: ghcr.io/ssddanbrown/rss:latest
|
||||
labels:
|
||||
traefik.docker.network: traefik
|
||||
traefik.enable: true
|
||||
traefik.http.routers.rss.entrypoints: websecure
|
||||
traefik.http.routers.rss.rule: Host(`rss.alexlebens.net`)
|
||||
traefik.http.routers.rss.service: rss
|
||||
traefik.http.services.rss.loadbalancer.server.port: 80
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 50m
|
||||
max-file: "3"
|
||||
networks:
|
||||
traefik: null
|
||||
restart: always
|
||||
volumes:
|
||||
- storage:/app/storage
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
name: traefik
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
storage:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
o: bind
|
||||
device: /var/lib/docker/volumes/partition/rss_storage
|
Reference in New Issue
Block a user