Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a255ff7932 | |||
| 332aef1b89 | |||
| 06780b1a42 | |||
| 3eabf1a3d4 | |||
| 55c8b72940 | |||
| 01b4f58524 | |||
| caa15ed4ee | |||
| 3554cde9e4 | |||
| a7060535cc | |||
| 669ee23ee9 | |||
| 52bd1fa698 | |||
| 8437218a97 | |||
| bfcac1b0e1 | |||
| 188bf0c4da |
@@ -26,15 +26,13 @@ jobs:
|
|||||||
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
|
tea login default gitea-rinoa
|
||||||
echo "Checking if PR exists for ${{ github.ref_name }}"
|
echo "Checking if PR exists for ${{ github.ref_name }}..."
|
||||||
tea pr ls --repo ${{ github.repository }} --state open --fields index,title,head,state
|
tea pr ls --repo ${{ github.repository }} --state all --fields index,title,head,state --output csv | egrep '${{ github.ref_name }}' | head -1 | egrep -q 'open'
|
||||||
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')
|
if [ $? -eq 0 ]; then
|
||||||
echo "PR state: ${pr_state}"
|
echo "An open PR exists, skipping creation..."
|
||||||
if [ "${pr_state}" != 'open' ]; then
|
elif [ $? -eq 1 ]; then
|
||||||
echo "PR does not exist, creating..."
|
echo "No open PRs, creating one..."
|
||||||
tea pr c -r "${{ github.repository }}" -t "Automated PR for ${{ github.ref_name }}" -d "Automated PR for ${{ github.ref_name }}"
|
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
|
fi
|
||||||
|
|
||||||
docker-compose-test:
|
docker-compose-test:
|
||||||
|
|||||||
+21
-1
@@ -556,7 +556,10 @@ services:
|
|||||||
castopod:
|
castopod:
|
||||||
container_name: castopod
|
container_name: castopod
|
||||||
depends_on:
|
depends_on:
|
||||||
- mariadb
|
mariadb:
|
||||||
|
condition: service_started
|
||||||
|
required: true
|
||||||
|
restart: true
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: castopod
|
MYSQL_DATABASE: castopod
|
||||||
MYSQL_USER: castopod
|
MYSQL_USER: castopod
|
||||||
@@ -1706,6 +1709,7 @@ services:
|
|||||||
mariadb:
|
mariadb:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
required: true
|
required: true
|
||||||
|
restart: true
|
||||||
environment:
|
environment:
|
||||||
APP_ADMIN_EMAIL: charish.patel@trez.wtf
|
APP_ADMIN_EMAIL: charish.patel@trez.wtf
|
||||||
APP_ADMIN_PASSWORD: ${HORTUSFOX_ADMIN_PASSWORD}
|
APP_ADMIN_PASSWORD: ${HORTUSFOX_ADMIN_PASSWORD}
|
||||||
@@ -1868,6 +1872,11 @@ services:
|
|||||||
create_host_path: true
|
create_host_path: true
|
||||||
invoice_ninja:
|
invoice_ninja:
|
||||||
container_name: invoice_ninja
|
container_name: invoice_ninja
|
||||||
|
depends_on:
|
||||||
|
mariadb:
|
||||||
|
condition: service_started
|
||||||
|
required: true
|
||||||
|
restart: true
|
||||||
environment:
|
environment:
|
||||||
APP_DEBUG: true
|
APP_DEBUG: true
|
||||||
APP_KEY: ${IN_APP_KEY}
|
APP_KEY: ${IN_APP_KEY}
|
||||||
@@ -3311,6 +3320,11 @@ services:
|
|||||||
volume: {}
|
volume: {}
|
||||||
nextcloud:
|
nextcloud:
|
||||||
container_name: nextcloud
|
container_name: nextcloud
|
||||||
|
depends_on:
|
||||||
|
mariadb:
|
||||||
|
condition: service_started
|
||||||
|
required: true
|
||||||
|
restart: true
|
||||||
environment:
|
environment:
|
||||||
PGID: 1000
|
PGID: 1000
|
||||||
PUID: 1000
|
PUID: 1000
|
||||||
@@ -3423,6 +3437,11 @@ services:
|
|||||||
type: bind
|
type: bind
|
||||||
paperless-ngx:
|
paperless-ngx:
|
||||||
container_name: paperless-ngx
|
container_name: paperless-ngx
|
||||||
|
depends_on:
|
||||||
|
mariadb:
|
||||||
|
condition: service_started
|
||||||
|
required: true
|
||||||
|
restart: true
|
||||||
environment:
|
environment:
|
||||||
PAPERLESS_DBENGINE: mariadb
|
PAPERLESS_DBENGINE: mariadb
|
||||||
PAPERLESS_DBHOST: mariadb
|
PAPERLESS_DBHOST: mariadb
|
||||||
@@ -6072,6 +6091,7 @@ services:
|
|||||||
mariadb:
|
mariadb:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
required: true
|
required: true
|
||||||
|
restart: true
|
||||||
redis:
|
redis:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
Reference in New Issue
Block a user