Compare commits

..

79 Commits

Author SHA1 Message Date
Trez.One 72a72e6d0e .
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 / PR Merge (push) Has been cancelled
2024-12-27 13:55:19 -05:00
Trez.One 75306489ab . 2024-12-27 13:50:13 -05:00
Trez.One f54291c3e7 . 2024-12-27 13:46:42 -05:00
Trez.One 4af4dcb7e2 . 2024-12-27 13:42:54 -05:00
Trez.One d656d24eea . 2024-12-27 13:39:54 -05:00
Trez.One 3f673d2db8 . 2024-12-27 13:37:10 -05:00
Trez.One acd0ad2b43 . 2024-12-27 13:31:47 -05:00
Trez.One f2cf1c7823 . 2024-12-27 13:28:59 -05:00
Trez.One d6fbd9ac27 . 2024-12-27 13:26:35 -05:00
Trez.One d4efb3b253 . 2024-12-27 13:23:03 -05:00
Trez.One 0ef0ace6c3 . 2024-12-27 13:15:39 -05:00
Trez.One 6027c672aa Added PR merge. 2024-12-27 13:12:07 -05:00
Trez.One 868af449f4 Added PR merge. 2024-12-27 13:10:36 -05:00
Trez.One 260e474967 . 2024-12-27 08:23:08 -05:00
Trez.One 678d037e07 Typo fix, L39. 2024-12-27 07:33:30 -05:00
Trez.One 7759ce0502 Switching Docker Compose Lint action. 2024-12-27 07:32:08 -05:00
Trez.One 675cb4e168 Switching Docker Compose Lint action. 2024-12-27 07:31:15 -05:00
Trez.One 0d0360bdd6 Switching Docker Compose Lint action. 2024-12-27 07:30:13 -05:00
Trez.One b0e296bc74 Removing SuperLinter for Docker Compose Lint action. 2024-12-27 07:23:58 -05:00
Trez.One 51c8566ce4 Debugging PR list step. 2024-12-27 07:12:01 -05:00
Trez.One 90e40b28c6 Debugging PR list step. 2024-12-27 07:05:35 -05:00
Trez.One 2772a7842b Re-inserting rest of PR list step. 2024-12-26 18:09:16 -05:00
Trez.One 738b4fbfce Debugging PR list step. 2024-12-26 18:06:15 -05:00
Trez.One da1a0e6d1d Debugging PR list step. 2024-12-26 18:00:35 -05:00
Trez.One 8287dcbc1d Debugging PR list step. 2024-12-26 17:58:45 -05:00
Trez.One 8aef56e8e8 Debugging PR list step. 2024-12-26 17:57:20 -05:00
Trez.One 183098a611 Debugging PR list step. 2024-12-26 17:52:10 -05:00
Trez.One 6b23490f24 Tweaking PR list step. 2024-12-25 06:56:36 -05:00
Trez.One ea91d7409d Fixing output statement. 2024-12-24 19:31:05 -05:00
Trez.One a95bf70b21 Fixing output statement. 2024-12-24 19:29:08 -05:00
Trez.One e7ee7170da Quote removal. 2024-12-24 19:24:49 -05:00
Trez.One 33918a45b0 Changing logic for PR creation. 2024-12-24 19:21:12 -05:00
Trez.One 61281aa679 Tweaking PR list action. 2024-12-24 15:37:00 -05:00
Trez.One 818d539e37 Tweaking PR list action. 2024-12-24 15:27:45 -05:00
Trez.One cd45b2e570 Tweaking PR list action. 2024-12-24 15:18:26 -05:00
Trez.One 8be711ce89 Tweaking PR list action. 2024-12-24 15:15:34 -05:00
Trez.One 86802b888e Tweaking PR list action. 2024-12-24 15:13:05 -05:00
Trez.One b777b81014 Tweaking PR list action. 2024-12-24 15:10:18 -05:00
Trez.One f080b7f533 Adding Super-Linter. 2024-12-24 15:06:42 -05:00
Trez.One 95cfc26d76 Tweaking PR listing actions. 2024-12-24 15:00:04 -05:00
Trez.One 5607c77ee7 Tweaking PR listing actions. 2024-12-24 14:56:51 -05:00
Trez.One 230a252227 Tweaking PR listing actions. 2024-12-24 14:54:26 -05:00
Trez.One aa3202c9e0 Starting new deployment pipeline. 2024-12-24 09:03:10 -05:00
Trez.One cb076491c2 Starting new deployment pipeline. 2024-12-24 07:42:42 -05:00
Trez.One 1ceaec8a8e Starting new deployment pipeline. 2024-12-24 07:41:23 -05:00
Trez.One 68f80d549f Starting new deployment pipeline. 2024-12-24 07:36:13 -05:00
Trez.One 8101358731 Starting new deployment pipeline. 2024-12-24 07:27:07 -05:00
Trez.One b798e51717 Starting new deployment pipeline. 2024-12-24 07:25:59 -05:00
Trez.One 85b5f9af0a Starting new deployment pipeline. 2024-12-24 07:24:37 -05:00
Trez.One 01b50d1b90 Starting new deployment pipeline. 2024-12-24 07:20:25 -05:00
Trez.One a936d9e477 Starting new deployment pipeline. 2024-12-24 07:17:44 -05:00
Trez.One 4f0a7105f7 Starting new deployment pipeline. 2024-12-24 07:16:04 -05:00
Trez.One bd79719567 Starting new deployment pipeline. 2024-12-24 07:15:14 -05:00
Trez.One 676919a6f1 Starting new deployment pipeline. 2024-12-24 07:14:02 -05:00
Trez.One 7bd3a9fab9 Starting new deployment pipeline. 2024-12-24 07:13:13 -05:00
Trez.One f8d50d454c Starting new deployment pipeline. 2024-12-24 07:11:30 -05:00
Trez.One 028140dc11 Starting new deployment pipeline. 2024-12-24 07:10:41 -05:00
Trez.One 52310fb83f Starting new deployment pipeline. 2024-12-24 06:47:05 -05:00
Trez.One 9b7226272c Starting new deployment pipeline. 2024-12-24 06:43:53 -05:00
Trez.One c4a32a7983 Custom directive for Zitadel. 2024-12-22 12:16:57 -05:00
Trez.One e93a232790 Komodo.skip flag fix hopefully. 2024-12-22 11:57:08 -05:00
Trez.One 1df03ee939 Custom directive for Zitadel. 2024-12-22 11:52:46 -05:00
Trez.One 4a28bf3785 Custom directive for Zitadel. 2024-12-22 11:35:53 -05:00
Trez.One 5f68436d21 Typo fix. 2024-12-22 10:25:20 -05:00
Trez.One cf5e491870 Adding komodo.skip for dockerproxy. 2024-12-22 10:24:12 -05:00
Trez.One cb13f1dfdb Updated gitignore; komodo skip flags for some containers. 2024-12-22 10:24:12 -05:00
Trez.One 9c38cf3ddc Adding komodo.skip label. 2024-12-22 10:08:41 -05:00
Trez.One e4224fa542 Added Komodo skip labels for Komodo services and Swag. 2024-12-22 09:23:09 -05:00
komodo a3a815c020 [Komodo] TheTreZuredOne: Write Compose File: update docker-compose.yml 2024-12-22 03:23:50 +00:00
komodo 08f26896df [Komodo] TheTreZuredOne: Write Compose File: update docker-compose.yml 2024-12-22 02:45:57 +00:00
komodo 6c93dbb9d1 [Komodo] TheTreZuredOne: Write Compose File: update docker-compose.yml 2024-12-22 02:42:51 +00:00
komodo 42e44b8921 [Komodo] TheTreZuredOne: Write Compose File: update docker-compose.yml 2024-12-22 02:17:43 +00:00
komodo 56688cd1f1 [Komodo] TheTreZuredOne: Write Compose File: update docker-compose.yml 2024-12-22 01:44:47 +00:00
komodo f54666da86 [Komodo] TheTreZuredOne: Write Compose File: update docker-compose.yml 2024-12-22 01:03:47 +00:00
gitea-sonarqube-bot e0ca473a83 Auto Merge
Merged by Trez.One
2024-12-21 19:15:39 -05:00
gitea-sonarqube-bot b6b662f6c0 Auto Merge
Merged by Trez.One
2024-12-21 18:50:10 -05:00
gitea-sonarqube-bot ec01d54b03 Auto Merge
Merged by Trez.One
2024-12-21 15:25:36 -05:00
gitea-sonarqube-bot 8ef3f41712 Auto Merge
Merged by Trez.One
2024-12-21 15:08:35 -05:00
Trez.One 9f75ea89dc Merge pull request 'Re-deploying Zitadel with config files for init.' (#28) from zitadel-deployment into main 2024-12-21 14:57:01 -05:00
4 changed files with 104 additions and 179 deletions
@@ -1,163 +0,0 @@
name: Gitea Branch PR, SonarQube Analyze, and Merge Workflow
on:
push:
branches-ignore:
- main
jobs:
# Job 1: Check if PR exists and create one if the branch is new
check-and-create-pr:
name: Check and Create PR
runs-on: ubuntu-latest
outputs:
pr_created: ${{ steps.cc-pr.outputs.pr_created }}
pr_number: ${{ steps.cc-pr.outputs.pr_index }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: PR Check/Create
id: cc-pr
run: |
echo "Checking for existing PR..."
pr_check=$(curl ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls/main/${{ github.ref_name }} \
-X 'GET' \
-H 'Accept: application/json' \
-H 'Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}' \
-s | jq '{index: .number, state: .state}')
pr_status=$(echo ${pr_check} | jq -r '.state')
if [ "${pr_status}" == "open" ]; then
echo "PR already exists. PR number: $(echo ${pr_check} | jq -r '.index')"
echo "pr_created=false" >> "$GITHUB_OUTPUT"
echo "pr_index=$(echo ${pr_check} | jq -r '.index')" >> "$GITHUB_OUTPUT"
elif [ "${pr_status}" == "closed" ]; then
echo "PR does not exist. Creating PR..."
pr_response=$(curl ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls -s \
-X 'POST' \
-H 'Accept: application/json' \
-H 'Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}' \
-H 'Content-Type: application/json' \
-d '{
"base": "main",
"head": "'"${{ github.ref_name }}"'",
"title": "Automated PR for branch '"${{ github.ref_name }}"'",
"body": "This is an automated PR created for branch '"${{ github.ref_name }}"'."
}')
pr_index=$(echo ${pr_response} | jq -r '.number')
echo "PR created. PR number: ${pr_index}"
echo "pr_created=true" >> "$GITHUB_OUTPUT"
echo "pr_index=${pr_index}" >> "$GITHUB_OUTPUT"
else
echo "Error checking for existing PR. Exiting..."
exit 1
fi
sonarqube-analysis:
name: SonarQube Analysis
runs-on: ubuntu-latest
needs: check-and-create-pr
outputs:
qg_status: ${{ steps.quality-gate.outputs.quality-gate-status }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@v4.1.0
env:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
- name: SonarQube Quality Gate
id: quality-gate
uses: sonarsource/sonarqube-quality-gate-action@v1.1.0
env:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
- name: Custom Quality Gate Check
uses: DesarrolloORT/sonarqube-quality-gate-action@v1.0.1
id: quality-gate-check
with:
sonar-project-key: rinoa-docker
sonar-host-url: ${{ secrets.SONARQUBE_HOST }}
sonar-token: ${{ secrets.SONARQUBE_TOKEN }}
- name: JSON clean-up for proccessing...
id: json-cleanup
run: |
echo "Cleaning up quality gate response..."
echo '${{ steps.quality-gate-check.outputs.quality-gate-result }}' > qg_input.txt
sed -E 's/([a-zA-Z0-9_]+):/\\"\1\\":/g; s/:([^",{}\[\]]+)/:"\1"/g' qg_input.txt > qg_raw.json
jq -c '.' qg_raw.json > qg_fixed_json.json
projstatus=$(jq -r '.projectStatus.status' qg_fixed_json.json)
caycStatus=$(jq -r '.projectStatus.caycStatus' qg_fixed_json.json)
conditions=$(jq -c '.projectStatus.conditions' qg_fixed_json.json)
echo "projstatus=${projstatus}" >> $GITHUB_OUTPUT
echo "caycStatus=${caycStatus}" >> $GITHUB_OUTPUT
echo "conditions=${conditions}" >> $GITHUB_OUTPUT
- name: Convert JSON to Markdown Table
id: convert-json-to-md
uses: buildingcash/json-to-markdown-table-action@v1.1.0
with:
json: "${{ steps.json-cleanup.outputs.conditions }}"
- name: Post SonarQube Results as Comment
env:
PR_NUMBER: ${{ needs.check-and-create-pr.outputs.pr_number }}
SQ_RESULTS: ${{ steps.convert-json-to-md.outputs.table }}
QG_STATUS: ${{ steps.quality-gate.outputs.quality-gate-status }}
RINOA_GITEA_URL: ${{ vars.RINOA_GITEA_URL }}
GITHUB_REPOSITORY: ${{ github.repository }}
BOT_GITEA_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }}
run: |
formatted_results=$(echo "${SQ_RESULTS}" | sed 's/\\n/\
/g')
payload=$(jq -n \
--arg body "SonarQube analysis results:
<br>
${{ env.SQ_RESULTS }}" \
'{ body: $body }')
response=$(curl -s -o response.json -w "%{http_code}" \
-X POST \
-H "Accept: application/json" \
-H "Authorization: token ${BOT_GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "$payload" \
"${RINOA_GITEA_URL}/api/v1/repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}/reviews")
dry-run-merge-pr:
runs-on: ubuntu-latest
name: Dry Run & PR Merge
needs: sonarqube-analysis
if: needs.sonarqube-analysis.outputs.qg_status == 'PASSED'
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Generate Ephemeral .env for Docker Compose Dry Run
run: |
echo "${{ secrets.RINOA_ENV }}" > .env
- name: Docker Compose Dry Run
uses: s3i7h/spin-up-docker-compose-action@v1.2
env:
DOCKER_HOST: tcp://dockerproxy:2375
with:
file: docker-compose.yml
pull: true
pull-opts: --dry-run
up: true
up-opts: -d --dry-run
- name: Tea CLI Setup & PR Merge
run: |
curl -sSL https://dl.gitea.com/tea/main/tea-main-linux-amd64 -o /usr/local/bin/tea
chmod +x /usr/local/bin/tea
echo "Merging PR..."
tea login add --name gitea-rinoa --url "${{ vars.RINOA_GITEA_URL }}" --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token "${{ secrets.BOT_GITEA_TOKEN }}"
pr_index=$(tea pr ls --repo ${{ github.repository }} --state open --output csv | egrep "${{ gitea.ref_name }}" | awk -F, '{print $1}' | sed -e 's|"||g')
tea pr m --repo ${{ github.repository }} --title "Auto Merge" --message "Merged by ${{ gitea.actor }}" --output table ${pr_index}
+75
View File
@@ -0,0 +1,75 @@
name: Gitea Branch PR, SonarQube Analyze, and Merge Workflow
on:
push:
branches-ignore:
- main
jobs:
# Job 1: Check if PR exists and create one if the branch is new
check-and-create-pr:
name: Check and Create PR
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: PR list
id: list-prs
run: |
curl -sSL https://dl.gitea.com/tea/main/tea-main-linux-amd64 -o /usr/local/bin/tea
chmod +x /usr/local/bin/tea
echo "Listing PRs..."
tea login add --name gitea-rinoa --url ${{ vars.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
pr_state=$(tea pr ls --repo ${{ github.repository }} --state open --output csv | egrep 'open|closed|merged' | awk -F, '{print $3}' | sed -e 's|"||g')
echo "pr_state=$(echo ${pr_state})" >> "$GITHUB_OUTPUT"
- name: Create PR
if: steps.list-prs.outputs.pr_state == 'closed'
uses: arifer612/Gitea-PR-action@v1.2.0
with:
url: ${{ gitea.server_url }}
token: ${{ secrets.BOT_GITEA_TOKEN }}
assignee: ${{ gitea.actor }}
docker-compose-test:
name: Docker Compose Test
needs: [create-pr]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate ephemeral .env compose file
id: generate-env-file-pr
run: |
echo "${{ secrets.RINOA_ENV }}" > .env
- name: Docker Compose Lint
uses: yu-ichiro/spin-up-docker-compose-action@v1
with:
file: docker-compose.yml
pull: true
pull-opts: --dry-run
up: true
up-opts: --dry-run -d --remove-orphans
env:
DOCKER_HOST: tcp://dockerproxy:2375
merge-pr:
name: PR Merge
runs-on: ubuntu-latest
needs: [docker-compose-test]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Tea CLI Setup & PR Merge
run: |
curl -sSL https://dl.gitea.com/tea/main/tea-main-linux-amd64 -o /usr/local/bin/tea
chmod +x /usr/local/bin/tea
echo "Merging PR..."
tea login add --name gitea-rinoa --url ${{ vars.RINOA_GITEA_URL }} --user gitea-sonarqube-bot --password "${{ secrets.BOT_GITEA_PASSWORD }}" --token ${{ secrets.BOT_GITEA_TOKEN }}
echo ${{ gitea.ref_name }}
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" --message "Merged by ${{ gitea.actor }}" --output table ${pr_index}
+2 -1
View File
@@ -1 +1,2 @@
**/.env*
**/.env*
**/*env*
+27 -15
View File
@@ -877,6 +877,8 @@ services:
- VOLUMES=1
- LOG_LEVEL=debug
image: ghcr.io/tecnativa/docker-socket-proxy:latest
labels:
komodo.skip: s
networks:
default: null
ports:
@@ -2672,6 +2674,7 @@ services:
homepage.href: https://komodo.${MY_TLD}
homepage.icon: /icons/komodo.png
homepage.description: Open-source note taking & to-do
komodo.skip: a
swag: enable
swag_url: komodo.${MY_TLD}
swag_port: 9120
@@ -2687,7 +2690,7 @@ services:
- komodo-pg-db
image: ghcr.io/ferretdb/ferretdb
labels:
komodo.skip: # Prevent Komodo from stopping with StopAllContainers
komodo.skip: a
restart: unless-stopped
expose:
- 27017
@@ -2705,7 +2708,7 @@ services:
- 8120
image: ghcr.io/mbecker20/periphery:latest
labels:
komodo.skip:
komodo.skip: a
restart: always
volumes:
- /proc:/proc
@@ -2717,6 +2720,8 @@ services:
POSTGRES_DB: komodo
expose:
- 5432
labels:
komodo.skip: a
image: postgres:17-alpine
restart: unless-stopped
volumes:
@@ -3235,6 +3240,14 @@ services:
- TZ=${TZ}
- PUID=${PUID}
- PGID=${PGID}
- MALOJA_URL=http://maloja:42010
- MALOJA_API_KEY=${MALOJA_API_KEY}
- LASTFM_API_KEY=${LASTFM_API_KEY}
- LASTFM_API_SECRET=${LASTFM_API_SECRET}
- LZ_USER=Trez.on
- LZ_TOKEN=${MALOJA_LISTENBRAINZ_TOKEN}
- SPOTIFY_CLIENT_ID=${YOUR_SPOTIFY_ID}
- SPOTIFY_CLIENT_SECRET=${YOUR_SPOTIFY_SECRET}
image: foxxmd/multi-scrobbler
labels:
- homepage.group=Media Library
@@ -4616,6 +4629,7 @@ services:
- swag_port=81
- swag_url=swag.${MY_TLD}
- swag_auth=authelia
- komodo.skip=a
- swag.uptime-kuma.enabled=true
- swag.uptime-kuma.monitor.url=https://swag.${MY_TLD}
- homepage.group=Infrastructure/App Performance Monitoring
@@ -6965,27 +6979,25 @@ services:
zitadel:
container_name: zitadel
image: ghcr.io/zitadel/zitadel:latest
command: 'start-from-init --masterkeyFromEnv --config /config.yaml --config secrets.yaml --config init-steps.yaml --tlsMode external'
command: 'start-from-init --masterkeyFromEnv --config /config.yaml --config /secrets.yaml --config /init-steps.yaml --tlsMode external'
# depends_on:
# zitadel-pg-db:
# condition: 'service_healthy'
environment:
ZITADEL_DATABASE_POSTGRES_DATABASE: zitadel
ZITADEL_DATABASE_POSTGRES_USER_PASSWORD: ${ZITADEL_DB_PASSWORD}
ZITADEL_DATABASE_POSTGRES_ADMIN_PASSWORD: ${ZITADEL_DB_ADMIN_PASSWORD}
ZITADEL_MASTERKEY: ${ZITADEL_MASTER_KEY}
expose:
- 8080
labels:
- swag=enable
- swag_proto=http
- swag_port=8080
- swag_url=zitadel.${MY_TLD}
- homepage.group=System Administration
- homepage.name=Zitadel
- homepage.href=https://id.${MY_TLD}
- homepage.icon=zitadel.svg
- homepage.description=Centralized authentication management
swag: enable
swag_proto: http
swag_port: 8080
swag_url: id.${MY_TLD}
swag_server_custom_directive: http2 on;
homepage.group: System Administration
homepage.name: Zitadel
homepage.href: https://id.${MY_TLD}
homepage.icon: zitadel.svg
homepage.description: Centralized authentication management
volumes:
- ${DOCKER_VOLUME_CONFIG}/zitadel/config.yaml:/config.yaml
- ${DOCKER_VOLUME_CONFIG}/zitadel/init-steps.yaml:/init-steps.yaml