Compare commits

...

20 Commits

Author SHA1 Message Date
Trez.One 7719735849 Fixing pipeline.
Gitea Branch PR, Cloudflare DNS, README generation, & Ansible/Docker Deployment / Check and Create PR (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Ansible/Docker Deployment / Docker Compose & Ansible Lints (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Ansible/Docker Deployment / Cloudflare DNS Setup (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Ansible/Docker Deployment / Update README (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Ansible/Docker Deployment / PR Merge (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Ansible/Docker Deployment / Deploy via Ansible & Docker Compose (push) Has been cancelled
2025-01-19 20:51:47 -05:00
Trez.One c7308b9dc4 Fixing pipeline. 2025-01-19 20:45:52 -05:00
Trez.One a8278b6910 Fixing pipeline. 2025-01-19 20:01:32 -05:00
Trez.One 03c2f0a540 Merge remote-tracking branch 'refs/remotes/origin/pg-backweb-deploy' into pg-backweb-deploy 2025-01-19 19:58:15 -05:00
Trez.One 14e2c8ff87 Fixing pipeline. 2025-01-19 19:57:58 -05:00
Trez.One a0b6d095c7 chore: Update README 2025-01-20 00:56:06 +00:00
Trez.One 0d82deb06c Fixing pipeline. 2025-01-19 19:51:32 -05:00
Trez.One b02387351e Adding PG Back Web service. 2025-01-19 19:48:25 -05:00
gitea-sonarqube-bot 67c4f335dd Auto Merge of PR #9 - add-ansible-to-workflow
Merged by Trez.One
2025-01-19 09:37:07 -05:00
gitea-sonarqube-bot ef0f1c901f Auto Merge of PR #14 - ansible-guy-webui-service
Merged by Trez.One
2025-01-19 08:00:58 -05:00
Trez.One fbf00bb78e Envs for ansible-webui.
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Check and Create PR (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Docker Compose Test (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Cloudflare DNS Setup (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Update README (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / PR Merge (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Deploy via Docker Compose (push) Has been cancelled
2025-01-19 07:57:09 -05:00
gitea-sonarqube-bot d59541a354 Auto Merge of PR #13 - ansible-guy-webui-service
Merged by Trez.One
2025-01-19 07:51:41 -05:00
Trez.One cba980f679 Merge remote-tracking branch 'refs/remotes/origin/ansible-guy-webui-service' into ansible-guy-webui-service 2025-01-19 07:45:39 -05:00
Trez.One 8f81633d3f Correcting homepage.href for ansible-webui. 2025-01-19 07:45:04 -05:00
gitea-sonarqube-bot a36c41e6a6 Auto Merge of PR #12 - ansible-guy-webui-service
Merged by Trez.One
2025-01-19 07:34:56 -05:00
Trez.One e48565ff17 chore: Update README 2025-01-19 12:34:19 +00:00
Trez.One e17b03acf4 Adding Ansible0guy WebUI. 2025-01-19 07:31:06 -05:00
gitea-sonarqube-bot 529087c82f Auto Merge of PR #11 - speedtest-tracker-deployment-librespeed-removal
Merged by Trez.One
2025-01-18 09:38:26 -05:00
Trez.One 128c61f4f4 chore: Update README 2025-01-18 14:37:47 +00:00
Trez.One 540763579a Removing Librespeed, adding Speedtest-tracker.
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Check and Create PR (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Docker Compose Test (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Cloudflare DNS Setup (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Update README (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / PR Merge (push) Has been cancelled
Gitea Branch PR, Cloudflare DNS, README generation, & Docker Deployment / Deploy via Docker Compose (push) Has been cancelled
2025-01-18 07:49:19 -05:00
3 changed files with 130 additions and 124 deletions
@@ -5,7 +5,6 @@ on:
- main
paths:
- '**.yml'
jobs:
check-and-create-pr:
name: Check and Create PR
@@ -16,7 +15,8 @@ jobs:
with:
fetch-depth: 1
- name: Cache tea CLI
uses: actions/cache@v3
id: cache-tea
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/tea/0.9.2/x64
key: tea-${{ runner.os }}-0.9.2
@@ -30,17 +30,17 @@ jobs:
id: check-opened-pr-step
continue-on-error: true
run: |
tea login add --name gitea-rinoa --url ${{ secrets.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
tea login default gitea-rinoa
tea login add --name gitea-rinoa --url "${{ secrets.RINOA_GITEA_URL }}" --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
pr_exists=$(tea pr list --repo ${{ github.repository }} --state open --fields index,title,head | egrep ${{ github.ref_name }} | tail -1 | wc -l)
echo ${pr_exists}
echo "exists=$pr_exists" >> $GITHUB_OUTPUT
- name: Create PR
if: ${{ steps.check-opened-pr-step.outputs.exists == '0' }}
run: |
pr_index_old=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | head -2 | tail -1 | awk -F, '{print $1}' | sed -e 's|"||g')'
tea login default gitea-rinoa
pr_index_old=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head --output csv | sed -e 's|"||g' | egrep '^[0-9]' | head -1 | awk -F"," '{print $1}')
pr_index_new=$(expr ${pr_index_old} + 1)
tea pr c -r ${{ github.repository }} -t "Automated PR for ${{ github.ref_name }} - ${pr_index_new}" -d "Automatically created PR for branch: ${{ github.ref_name }}" -a ${{ github.actor }}
tea pr c -r ${{ github.repository }} -t "Automated PR for ${{ github.ref_name }} - #${pr_index_new}" -d "Automatically created PR for branch: ${{ github.ref_name }}" -a ${{ github.actor }}
docker-compose-ansible-lints:
name: Docker Compose & Ansible Lints
needs: [check-and-create-pr]
@@ -51,57 +51,26 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Vault install
id: cache-vault
uses: actions/cache@v4
with:
fetch-depth: 1
# Cache Ansible Galaxy Collections
- name: Cache Ansible Galaxy Collections
uses: actions/cache@v3
with:
path: ansible/collections
key: ${{ runner.os }}-ansible-${{ hashFiles('./ansible/collections/requirements.yml') }}
restore-keys: |
${{ runner.os }}-ansible-
# Install Ansible
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Ansible
run: |
python3 -m pip install --upgrade pip
pip3 install ansible
path: /opt/hostedtoolcache/vault/1.18.0/x64
key: vault-${{ runner.os }}-1.18.0
- name: Install Vault
uses: cpanato/vault-installer@main
# Install Galaxy Collections
- name: Install Galaxy Collections
if: steps.cache-ansible-galaxy-collections.outputs.cache-hit != 'true'
run: |
ansible-galaxy collection install -r ansible/collections/requirements.yml -p ansible/collections
# Run Docker Config Deployment
- name: Docker Config Deployment
id: docker-config-deploy
uses: arillso/action.playbook@0.0.8
uses: supplypike/setup-bin@v4
with:
check: true
diff: true
galaxy_collections_path: ansible/collections
galaxy_requirements_file: ansible/collections/requirements.yml
inventory: ansible/ansible-inventory.yml
playbook: ansible/docker_config_deploy.yml
private_key: ${{ secrets.RINOA_ANSIBLE_PRIVATE_KEY }}
vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
verbose: 1
# Generate .env File
uri: 'https://releases.hashicorp.com/vault/1.18.0/vault_1.18.0_linux_amd64.zip'
name: 'vault'
version: '1.18.0'
- name: Generate .env file for Docker Compose Dry Run
run: |
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
# Cache .env File
- name: Cache .env Files
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .env
key: ${{ runner.os }}-env-${{ hashFiles('docker-compose.yml') }}
# Docker Compose Dry Run
- name: Docker Compose Dry Run
uses: yu-ichiro/spin-up-docker-compose-action@v1
with:
@@ -122,7 +91,7 @@ jobs:
with:
fetch-depth: 1
- name: Cache flarectl CLI
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.flarectl
key: flarectl-${{ runner.os }}-${{ hashFiles('workflow-config.yml') }}
@@ -133,7 +102,7 @@ jobs:
name: 'flarectl'
version: '0.113.0'
- name: Cache Subdomain Files
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
compose_subdomains.txt
@@ -223,7 +192,6 @@ jobs:
name: Deploy via Ansible & Docker Compose
runs-on: ubuntu-latest
needs: [pr-merge]
if: ${{ github.event.pull_request.merged == true }
env:
VAULT_ADDR: ${{ secrets.RINOA_VAULT_ADDR }}
VAULT_TOKEN: ${{ secrets.VAULT_GITEA_TOKEN }}
@@ -233,26 +201,25 @@ jobs:
uses: actions/checkout@v4
with:
ref: main
# - name: Gotify Notification
# uses: eikendev/gotify-action@master
# with:
# gotify_api_base: '${{ secrets.RINOA_GOTIFY_URL }}'
# gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
# notification_title: 'Ansible Config Deployment @ Rinoa'
# notification_message: 'Deployment completed successfully.'
- name: Cache Vault install
id: cache-vault
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/vault/1.18.0/x64
key: vault-${{ runner.os }}-1.18.0
- name: Install Vault
uses: cpanato/vault-installer@main
- name: Gotify Notification
uses: eikendev/gotify-action@master
uses: supplypike/setup-bin@v4
with:
gotify_api_base: '${{ secrets.gotify_api_base }}'
gotify_app_token: '${{ secrets.gotify_app_token }}'
notification_title: 'Ansible Config Deployment @ Rinoa'
notification_message: 'Deployment completed successfully.'
- name: Docker Config Deployment via Ansible
id: docker-config-deploy
uses: arillso/action.playbook@0.0.8
with:
galaxy_collections_path: ansible/collections
galaxy_requirements_file: ansible/collections/requirements.yml
inventory: ansible/ansible-inventory
playbook: ansible/docker_config_deploy.yml
private_key: ${{ secrets.RINOA_ANSIBLE_PRIVATE_KEY }}
vault_password: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
verbose: 1
uri: 'https://releases.hashicorp.com/vault/1.18.0/vault_1.18.0_linux_amd64.zip'
name: 'vault'
version: '1.18.0'
- name: Generate .env file for deployment
run: |
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
@@ -267,7 +234,7 @@ jobs:
- name: Gotify Notification
uses: eikendev/gotify-action@master
with:
gotify_api_base: '${{ secrets.gotify_api_base }}'
gotify_app_token: '${{ secrets.gotify_app_token }}'
notification_title: 'Docker ComposeDeployment @ Rinoa'
gotify_api_base: '${{ secrets.RINOA_GITEA_PUBLIC_SSH_KEY }}'
gotify_app_token: '${{ secrets.RINOA_RUNNER_GOTIFY_TOKEN }}'
notification_title: 'Docker Compose Deployment @ Rinoa'
notification_message: 'Deployment completed successfully.'
+4 -1
View File
@@ -6,6 +6,7 @@
| --- | --- |
| actual_server | docker.io/actualbudget/actual-server:latest |
| adguard | adguard/adguardhome:latest |
| ansible0guy-webui | ansible0guy/webui:latest |
| apprise | lscr.io/linuxserver/apprise-api:latest |
| audiobookshelf | ghcr.io/advplyr/audiobookshelf:latest |
| authelia | authelia/authelia:master |
@@ -67,7 +68,6 @@
| jitsi-web | jitsi/web:stable |
| joplin-db | postgres:17-alpine |
| joplin | joplin/server:latest |
| librespeed | lscr.io/linuxserver/librespeed:latest |
| lidarr | lscr.io/linuxserver/lidarr:latest |
| lidify | thewicklowwolf/lidify:latest |
| lldap | lldap/lldap:stable |
@@ -87,6 +87,8 @@
| ollama | ollama/ollama |
| ombi | lscr.io/linuxserver/ombi:latest |
| paperless-ngx | ghcr.io/paperless-ngx/paperless-ngx:latest |
| pgbackweb | eduardolat/pgbackweb:latest |
| pgbackweb-db | postgres:16-alpine |
| plausible | ghcr.io/plausible/community-edition:v2.1.0 |
| plausible_db | postgres:16-alpine |
| plausible_events_db | clickhouse/clickhouse-server:24.3.3.102-alpine |
@@ -119,6 +121,7 @@
| sonashow | thewicklowwolf/sonashow:latest |
| soularr | mrusse08/soularr:latest |
| soulseek | slskd/slskd |
| speedtest-tracker | lscr.io/linuxserver/speedtest-tracker:latest |
| spotisub | blastbeng/spotisub:latest |
| swag | lscr.io/linuxserver/swag:latest |
| synapse | docker.io/matrixdotorg/synapse:latest |
+88 -52
View File
@@ -118,6 +118,28 @@ services:
type: bind
bind:
create_host_path: true
ansible0guy-webui:
container_name: ansible-webui
environment:
AW_HOSTNAMES: ansible.trez.wtf
AW_PROXY: 1
AW_SECRET: ${ANSIBLE_WEBUI_SECRET}
image: ansible0guy/webui:latest
labels:
homepage.group: Code/DevOps
homepage.name: Ansible WebUI
homepage.icon: ansible.svg
homepage.href: https://ansible.${MY_TLD}
homepage.description: WebUI for Ansible
swag: enable
swag_url: ansible.${MY_TLD}
swag_proto: http
swag_port: 8000
swag.uptime-kuma.monitor.url: https://ansible.${MY_TLD}
swag.uptime-kuma.enabled: true
ports:
- 44448:8000
restart: unless-stopped
apprise:
container_name: apprise
environment:
@@ -2685,57 +2707,6 @@ services:
published: "22300"
target: 22300
restart: unless-stopped
librespeed:
container_name: librespeed
environment:
DB_HOSTNAME:
DB_NAME:
DB_PASSWORD:
DB_TYPE: sqlite
DB_USERNAME:
PASSWORD:
PGID: 1000
PUID: 1000
TZ: America/New_York
DOCKER_MODS: ghcr.io/themepark-dev/theme.park:librespeed
hostname: Rinoa
image: lscr.io/linuxserver/librespeed:latest
labels:
homepage.group: System Administration
homepage.name: LibreSpeed
homepage.href: https://speed.${MY_TLD}
homepage.icon: librespeed.png
homepage.description: Speed test
homepage: enable
homepage_proto: http
homepage_url: speed.${MY_TLD}
homepage.uptime-kuma.enabled: true
homepage.uptime-kuma.monitor.url: https://speed.${MY_TLD}
networks:
default: null
ports:
- mode: ingress
protocol: tcp
published: "8014"
target: 80
restart: unless-stopped
volumes:
- bind:
create_host_path: true
read_only: true
source: /etc/localtime
target: /etc/localtime
type: bind
- bind:
create_host_path: true
source: ${DOCKER_VOLUME_CONFIG}/librespeed
target: /config
type: bind
- bind:
create_host_path: true
source: /rinoa-storage
target: /storage
type: bind
lidarr:
container_name: lidarr
environment:
@@ -3484,6 +3455,44 @@ services:
type: bind
bind:
create_host_path: true
pgbackweb:
container_name: pgbackweb
depends_on:
pgbackweb-db:
condition: service_healthy
environment:
PBW_ENCRYPTION_KEY: ${PGBACKWEB_ENCRYPTION_KEY}
PBW_POSTGRES_CONN_STRING: "postgresql://pgbackweb:${PGBACKWEB_PG_DB_PASSWD}@pgbackweb-db:5432/pgbackweb?sslmode=disable"
TZ: ${TZ}
image: eduardolat/pgbackweb:latest
labels:
homepage.group: System Administration
homepage.name: PGBackweb
homepage.href: https://pg.${MY_TLD}
homepage.icon: sh-pg-back-web.svg
homepage.description: Backups for PostgreSQL
swag: enable
swag_proto: http
swag_port: 8085
swag_url: pg.${MY_TLD}
ports:
- "8085:8085" # Access the web interface at http://localhost:8085
pgbackweb-db:
container_name: pgbackweb-db
environment:
POSTGRES_USER: pgbackweb
POSTGRES_DB: pgbackweb
POSTGRES_PASSWORD: ${PGBACKWEB_PG_DB_PASSWD}
expose:
- 5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
image: postgres:16-alpine
volumes:
- pgbackweb-data:/var/lib/postgresql/data
plausible:
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
container_name: plausible
@@ -4542,6 +4551,31 @@ services:
type: bind
bind:
create_host_path: true
speedtest-tracker:
container_name: speedtest-tracker
image: lscr.io/linuxserver/speedtest-tracker:latest
environment:
PUID: ${PUID}
PGID: ${PGID}
APP_KEY: ${SPEEDTEST_TRACKER_APP_KEY}
DB_CONNECTION: sqlite
labels:
homepage.name: Speedtest Traccker
homepage.group: System Administration
homepage.description: Self-hosted internet performance tracking
homepage.href: https://speed.${MY_TLD}
homepage.icon: speedtest-tracker.png
swag: enable
swag_proto: http
swag_url: speed.${MY_TLD}
swag.uptime-kuma.enabled: true
swag.uptime-kuma.monitor.url: https://slsk.${MY_TLD}
ports:
- 47512:80
- 62777:443
restart: unless-stopped
volumes:
- ${DOCKER_VOLUME_CONFIG}/speedtest-tracker:/config
spotisub:
container_name: spotisub
environment:
@@ -4697,7 +4731,7 @@ services:
homepage.group: Lifestyle
homepage.name: Tandoor Recipes
homepage.href: https://recipes.${MY_TLD}
homepage.icon: tandoor.svg
homepage.icon: tandoor-recipes.svg
homepage.description: Recipes, cookbooks, meal-planning, & grocery lists
homepage.widget.type: tandoor
homepage.widget.url: http://tandoor-recipes:8080
@@ -7148,6 +7182,8 @@ volumes:
name: paperless-ngx-media
paperless-ngx-pg:
name: paperless-ngx-pg
pgbackweb-data:
name: pgbackweb-data
plausible-db-data:
name: plausible-db-data
plausible-event-data: