@@ -5,7 +5,6 @@ on:
|
|||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- '**.yml'
|
- '**.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-and-create-pr:
|
check-and-create-pr:
|
||||||
name: Check and Create PR
|
name: Check and Create PR
|
||||||
@@ -16,7 +15,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- name: Cache tea CLI
|
- name: Cache tea CLI
|
||||||
uses: actions/cache@v3
|
id: cache-tea
|
||||||
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: /opt/hostedtoolcache/tea/0.9.2/x64
|
path: /opt/hostedtoolcache/tea/0.9.2/x64
|
||||||
key: tea-${{ runner.os }}-0.9.2
|
key: tea-${{ runner.os }}-0.9.2
|
||||||
@@ -30,17 +30,17 @@ jobs:
|
|||||||
id: check-opened-pr-step
|
id: check-opened-pr-step
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
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 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
|
|
||||||
pr_exists=$(tea pr list --repo ${{ github.repository }} --state open --fields index,title,head | egrep ${{ github.ref_name }} | tail -1 | wc -l)
|
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 ${pr_exists}
|
||||||
echo "exists=$pr_exists" >> $GITHUB_OUTPUT
|
echo "exists=$pr_exists" >> $GITHUB_OUTPUT
|
||||||
- name: Create PR
|
- name: Create PR
|
||||||
if: ${{ steps.check-opened-pr-step.outputs.exists == '0' }}
|
if: ${{ steps.check-opened-pr-step.outputs.exists == '0' }}
|
||||||
run: |
|
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)
|
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:
|
docker-compose-ansible-lints:
|
||||||
name: Docker Compose & Ansible Lints
|
name: Docker Compose & Ansible Lints
|
||||||
needs: [check-and-create-pr]
|
needs: [check-and-create-pr]
|
||||||
@@ -51,57 +51,27 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Cache Vault install
|
||||||
|
id: cache-vault
|
||||||
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
path: /opt/hostedtoolcache/vault/1.18.0/x64
|
||||||
# Cache Ansible Galaxy Collections
|
key: vault-${{ runner.os }}-1.18.0
|
||||||
- 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
|
|
||||||
- name: Install Vault
|
- name: Install Vault
|
||||||
uses: cpanato/vault-installer@main
|
if: steps.cache-vault.outputs.cache-hit != 'true'
|
||||||
# Install Galaxy Collections
|
uses: supplypike/setup-bin@v4
|
||||||
- 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
|
|
||||||
with:
|
with:
|
||||||
check: true
|
uri: 'https://releases.hashicorp.com/vault/1.18.0/vault_1.18.0_linux_amd64.zip'
|
||||||
diff: true
|
name: 'vault'
|
||||||
galaxy_collections_path: ansible/collections
|
version: '1.18.0'
|
||||||
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
|
|
||||||
- name: Generate .env file for Docker Compose Dry Run
|
- name: Generate .env file for Docker Compose Dry Run
|
||||||
run: |
|
run: |
|
||||||
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
|
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
|
- name: Cache .env Files
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: .env
|
path: .env
|
||||||
key: ${{ runner.os }}-env-${{ hashFiles('docker-compose.yml') }}
|
key: ${{ runner.os }}-env-${{ hashFiles('docker-compose.yml') }}
|
||||||
# Docker Compose Dry Run
|
|
||||||
- name: Docker Compose Dry Run
|
- name: Docker Compose Dry Run
|
||||||
uses: yu-ichiro/spin-up-docker-compose-action@v1
|
uses: yu-ichiro/spin-up-docker-compose-action@v1
|
||||||
with:
|
with:
|
||||||
@@ -122,7 +92,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- name: Cache flarectl CLI
|
- name: Cache flarectl CLI
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.flarectl
|
path: ~/.flarectl
|
||||||
key: flarectl-${{ runner.os }}-${{ hashFiles('workflow-config.yml') }}
|
key: flarectl-${{ runner.os }}-${{ hashFiles('workflow-config.yml') }}
|
||||||
@@ -133,7 +103,7 @@ jobs:
|
|||||||
name: 'flarectl'
|
name: 'flarectl'
|
||||||
version: '0.113.0'
|
version: '0.113.0'
|
||||||
- name: Cache Subdomain Files
|
- name: Cache Subdomain Files
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
compose_subdomains.txt
|
compose_subdomains.txt
|
||||||
@@ -233,8 +203,8 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: main
|
ref: main
|
||||||
- name: Install Vault
|
# - name: Install Vault
|
||||||
uses: cpanato/vault-installer@main
|
# uses: cpanato/vault-installer@main
|
||||||
- name: Gotify Notification
|
- name: Gotify Notification
|
||||||
uses: eikendev/gotify-action@master
|
uses: eikendev/gotify-action@master
|
||||||
with:
|
with:
|
||||||
@@ -242,17 +212,6 @@ jobs:
|
|||||||
gotify_app_token: '${{ secrets.gotify_app_token }}'
|
gotify_app_token: '${{ secrets.gotify_app_token }}'
|
||||||
notification_title: 'Ansible Config Deployment @ Rinoa'
|
notification_title: 'Ansible Config Deployment @ Rinoa'
|
||||||
notification_message: 'Deployment completed successfully.'
|
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
|
|
||||||
- name: Generate .env file for deployment
|
- name: Generate .env file for deployment
|
||||||
run: |
|
run: |
|
||||||
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
|
vault kv get -format=json rinoa-docker/env | jq -r '.data.data' | jq -r 'keys[] as $k | "\($k)='\''\(.[$k])'\''"' > .env
|
||||||
|
|||||||
@@ -87,6 +87,8 @@
|
|||||||
| ollama | ollama/ollama |
|
| ollama | ollama/ollama |
|
||||||
| ombi | lscr.io/linuxserver/ombi:latest |
|
| ombi | lscr.io/linuxserver/ombi:latest |
|
||||||
| paperless-ngx | ghcr.io/paperless-ngx/paperless-ngx: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 | ghcr.io/plausible/community-edition:v2.1.0 |
|
||||||
| plausible_db | postgres:16-alpine |
|
| plausible_db | postgres:16-alpine |
|
||||||
| plausible_events_db | clickhouse/clickhouse-server:24.3.3.102-alpine |
|
| plausible_events_db | clickhouse/clickhouse-server:24.3.3.102-alpine |
|
||||||
|
|||||||
+41
-1
@@ -3455,6 +3455,44 @@ services:
|
|||||||
type: bind
|
type: bind
|
||||||
bind:
|
bind:
|
||||||
create_host_path: true
|
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:
|
plausible:
|
||||||
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
||||||
container_name: plausible
|
container_name: plausible
|
||||||
@@ -4693,7 +4731,7 @@ services:
|
|||||||
homepage.group: Lifestyle
|
homepage.group: Lifestyle
|
||||||
homepage.name: Tandoor Recipes
|
homepage.name: Tandoor Recipes
|
||||||
homepage.href: https://recipes.${MY_TLD}
|
homepage.href: https://recipes.${MY_TLD}
|
||||||
homepage.icon: tandoor.svg
|
homepage.icon: tandoor-recipes.svg
|
||||||
homepage.description: Recipes, cookbooks, meal-planning, & grocery lists
|
homepage.description: Recipes, cookbooks, meal-planning, & grocery lists
|
||||||
homepage.widget.type: tandoor
|
homepage.widget.type: tandoor
|
||||||
homepage.widget.url: http://tandoor-recipes:8080
|
homepage.widget.url: http://tandoor-recipes:8080
|
||||||
@@ -7144,6 +7182,8 @@ volumes:
|
|||||||
name: paperless-ngx-media
|
name: paperless-ngx-media
|
||||||
paperless-ngx-pg:
|
paperless-ngx-pg:
|
||||||
name: paperless-ngx-pg
|
name: paperless-ngx-pg
|
||||||
|
pgbackweb-data:
|
||||||
|
name: pgbackweb-data
|
||||||
plausible-db-data:
|
plausible-db-data:
|
||||||
name: plausible-db-data
|
name: plausible-db-data
|
||||||
plausible-event-data:
|
plausible-event-data:
|
||||||
|
|||||||
Reference in New Issue
Block a user