Compare commits

...

34 Commits

Author SHA1 Message Date
Trez.One 6ca7560eb7 ....
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Check and Create PR (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Docker Compose Test (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Cloudflare DNS Setup (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Update README (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / PR Merge (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Deploy via Docker Compose (push) Has been cancelled
2025-01-15 12:33:12 -05:00
Trez.One 2642a9897e .... 2025-01-15 12:25:44 -05:00
Trez.One a76e7e53da .... 2025-01-15 12:24:16 -05:00
Trez.One fe0d4f5035 .... 2025-01-15 12:23:17 -05:00
Trez.One 7d7e291127 .... 2025-01-15 12:21:31 -05:00
Trez.One ef36881e15 . 2025-01-15 12:16:01 -05:00
Trez.One 4e39415f49 . 2025-01-15 12:14:27 -05:00
Trez.One ef24bb97e5 . 2025-01-15 12:10:52 -05:00
Trez.One 88380e6991 . 2025-01-15 11:56:12 -05:00
Trez.One fb3f0452a2 . 2025-01-15 11:55:17 -05:00
Trez.One fe66d7a723 . 2025-01-15 11:51:44 -05:00
Trez.One 22f37bcdee . 2025-01-15 11:42:45 -05:00
Trez.One 60351f5d11 . 2025-01-15 11:17:11 -05:00
Trez.One 1c391ceb8b . 2025-01-15 11:01:58 -05:00
Trez.One 260c6a8aa5 Adding Mastodon container. 2025-01-15 10:53:27 -05:00
Trez.One 8c70e5b1c4 Removing extra whitespaces. 2025-01-15 10:50:24 -05:00
gitea-sonarqube-bot 4b9d2cca29 Auto Merge of PR #10 - docker-compose-deploy
Merged by Trez.One
2025-01-14 13:44:55 -05:00
Trez.One a255ff7932 ...
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Check and Create PR (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Docker Compose Test (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Cloudflare DNS Setup (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Update README (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / PR Merge (push) Has been cancelled
Gitea Branch PR, SonarQube Analyze, and Merge Workflow / Deploy via Docker Compose (push) Has been cancelled
2025-01-14 13:40:17 -05:00
Trez.One 332aef1b89 ... 2025-01-14 13:37:29 -05:00
Trez.One 06780b1a42 .. 2025-01-14 13:35:19 -05:00
Trez.One 3eabf1a3d4 .. 2025-01-14 13:29:55 -05:00
Trez.One 55c8b72940 .. 2025-01-14 13:25:27 -05:00
Trez.One 01b4f58524 .. 2025-01-14 13:21:18 -05:00
Trez.One caa15ed4ee . 2025-01-14 13:15:44 -05:00
Trez.One 3554cde9e4 . 2025-01-14 13:11:58 -05:00
Trez.One a7060535cc . 2025-01-14 13:10:19 -05:00
Trez.One 669ee23ee9 . 2025-01-14 13:08:33 -05:00
Trez.One 52bd1fa698 Adding restart true for services dependent on mariadb. 2025-01-14 12:42:52 -05:00
Trez.One 8437218a97 Adding restart true for services dependent on mariadb. 2025-01-14 12:36:01 -05:00
Trez.One ffde329c8f Merge remote-tracking branch 'refs/remotes/origin/main' 2025-01-14 12:34:31 -05:00
Trez.One 4e88423877 Updating workflow. 2025-01-14 12:34:20 -05:00
gitea-sonarqube-bot 2c95d98555 Auto Merge of PR #9 - docker-compose-deploy
Merged by Trez.One
2025-01-14 12:25:04 -05:00
Trez.One bfcac1b0e1 Tweaking PR creation step. 2025-01-14 12:21:05 -05:00
Trez.One 188bf0c4da Tweaking PR creation step. 2025-01-14 12:19:41 -05:00
2 changed files with 101 additions and 15 deletions
+28 -14
View File
@@ -20,22 +20,37 @@ jobs:
uri: 'https://gitea.com/gitea/tea/releases/download/v0.9.2/tea-0.9.2-linux-amd64'
name: 'tea'
version: '0.9.2'
- name: Check if PR exists & Create
id: list-prs
- name: Check if open PR exists
id: check-opened-pr-step
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
echo "Checking if PR exists for ${{ github.ref_name }}"
tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state
pr_state=$(tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep '${{ gitea.ref_name }}' | head -1 |awk -F, '{print $4}' | sed -e 's|"||g')
echo "PR state: ${pr_state}"
if [ "${pr_state}" != 'open' ]; then
echo "PR does not exist, creating..."
tea pr c -r "${{ github.repository }}" -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}"
elif [ "${pr_state}" = 'open' ]; then
echo "PR already exists, skipping creation..."
fi
pr_exists=$(tea pr list --repo ${{ github.repository }} --state open | egrep ${{ github.ref_name }} | wc -l)
echo "exists=$pr_exists" >> $GITHUB_OUTPUT
- name: Create PR
if: steps.check-opened-pr-step.outputs.exists == 0
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
echo "Creating PR for branch: ${{ github.ref_name }}"
tea pr c -r ${{ github.repository }} -t "Automated PR for ${{ github.ref_name }}" -d "Automatically created PR for branch: ${{ github.ref_name }}" -a ${{ github.actor }}
# echo "Checking if any open PRs exist for branch: ${{ github.ref_name }}"
# PR_STATE=$(tea pr ls --repo "${{ github.repository }}" --state all --fields index,title,head,state --output csv | grep "${{ github.ref_name }}") | head -1 | awk -F',' '{print $4}' | tr -d '"'
# echo "PR_STATE: $PR_STATE"
# PR_EXISTS=$(echo "$PR_STATE" | wc -l)
# if [ "$PR_EXISTS" -ge 1 ]; then
# echo "PR exists, skipping creation..."
# elif [ "$PR_EXISTS" -eq 0 ]; then
# echo "PR does not exist, creating PR..."
# tea pr c -r "${{ github.repository }}" -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}"
# else
# echo "Error determining PR status. Exiting..."
# exit 1
# fi
docker-compose-test:
name: Docker Compose Test
@@ -184,7 +199,6 @@ jobs:
pr_index=$(tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state --output csv | egrep ${{ gitea.ref_name }} | awk -F, '{print $1}' | sed -e 's|"||g')
tea pr m --repo ${{ github.repository }} --title "Auto Merge of PR #${pr_index} - ${{ gitea.ref_name }}" --message "Merged by ${{ gitea.actor }}" --output table ${pr_index}
docker-compose-deploy:
name: Deploy via Docker Compose
runs-on: ubuntu-latest
+73 -1
View File
@@ -556,7 +556,10 @@ services:
castopod:
container_name: castopod
depends_on:
- mariadb
mariadb:
condition: service_started
required: true
restart: true
environment:
MYSQL_DATABASE: castopod
MYSQL_USER: castopod
@@ -1706,6 +1709,7 @@ services:
mariadb:
condition: service_started
required: true
restart: true
environment:
APP_ADMIN_EMAIL: charish.patel@trez.wtf
APP_ADMIN_PASSWORD: ${HORTUSFOX_ADMIN_PASSWORD}
@@ -1868,6 +1872,11 @@ services:
create_host_path: true
invoice_ninja:
container_name: invoice_ninja
depends_on:
mariadb:
condition: service_started
required: true
restart: true
environment:
APP_DEBUG: true
APP_KEY: ${IN_APP_KEY}
@@ -3058,6 +3067,58 @@ services:
type: bind
bind:
create_host_path: true
mastodon:
container_name: mastodon
environment:
PUID: ${PUID}
PGID: ${PGID}
TZ: ${TZ}
LOCAL_DOMAIN: trez.wtf
REDIS_HOST: redis
REDIS_PORT: 6379
DB_HOST: mastodon-pg-db
DB_USER: mastodon
DB_NAME: mastodon
DB_PASS: ${MASTODON_PG_DB_PASSWORD}
DB_PORT: 5432
ES_ENABLED: false
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY:
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY:
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT:
SECRET_KEY_BASE:
OTP_SECRET:
VAPID_PRIVATE_KEY:
VAPID_PUBLIC_KEY:
SMTP_SERVER: postal-smtp
SMTP_PORT: 25
SMTP_LOGIN: ${POSTAL_SMTP_AUTH_USER}
SMTP_PASSWORD: ${POSTAL_SMTP_AUTH_PASSWORD}
SMTP_FROM_ADDRESS: noreply@trez.wtf
S3_ENABLED: true
S3_BUCKET: mastodon
AWS_ACCESS_KEY_ID: ${MASTODON_MINIO_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${MASTODON_MINIO_SECRET_KEY}
image: lscr.io/linuxserver/mastodon:latest
labels:
swag: enable
swag_proto: http
swag_port: 5678
swag_url: mastodon.${MY_TLD}
swag.uptime-kuma.enabled: true
swag.uptime-kuma.monitor.url: https://mastodon.${MY_TLD}
homepage.group: Social
homepage.name: Mastodon
homepage.href: https://mastodon.${MY_TLD}
homepage.icon: mastodon.svg
homepage.description: Open-source social network
homepage.widget.type: mastodon
homepage.widget.url: http://mastodon
ports:
- 9044:80
- 3444:443
restart: unless-stopped
volumes:
- ${DOCKER_VOLUME_CONFIG}/mastodon:/config
mastodon-pg-db:
container_name: mastodon-pg-db
environment:
@@ -3311,6 +3372,11 @@ services:
volume: {}
nextcloud:
container_name: nextcloud
depends_on:
mariadb:
condition: service_started
required: true
restart: true
environment:
PGID: 1000
PUID: 1000
@@ -3423,6 +3489,11 @@ services:
type: bind
paperless-ngx:
container_name: paperless-ngx
depends_on:
mariadb:
condition: service_started
required: true
restart: true
environment:
PAPERLESS_DBENGINE: mariadb
PAPERLESS_DBHOST: mariadb
@@ -6072,6 +6143,7 @@ services:
mariadb:
condition: service_started
required: true
restart: true
redis:
condition: service_started
required: true