Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ca7560eb7 | |||
| 2642a9897e | |||
| a76e7e53da | |||
| fe0d4f5035 | |||
| 7d7e291127 | |||
| ef36881e15 | |||
| 4e39415f49 | |||
| ef24bb97e5 | |||
| 88380e6991 | |||
| fb3f0452a2 | |||
| fe66d7a723 | |||
| 22f37bcdee | |||
| 60351f5d11 | |||
| 1c391ceb8b | |||
| 260c6a8aa5 | |||
| 8c70e5b1c4 | |||
| 4b9d2cca29 | |||
| ffde329c8f | |||
| 4e88423877 | |||
| 2c95d98555 | |||
| f15e5b87f6 | |||
| 3442ac6c7f | |||
| 229d683a19 | |||
| 802a2283f6 | |||
| a1a8722040 | |||
| 8781df1332 | |||
| 74339125e0 | |||
| d4ca0a8ffa | |||
| 2f46f884e4 |
@@ -20,20 +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 all --fields index,title,head,state --output csv | egrep '${{ github.ref_name }}' | head -1 | egrep -q 'open'
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "An open PR exists, skipping creation..."
|
||||
elif [ $? -eq 1 ]; then
|
||||
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 }}"
|
||||
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
|
||||
@@ -182,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
|
||||
|
||||
+55
-3
@@ -1157,7 +1157,7 @@ services:
|
||||
GITEA__mailer__SMTP_PORT: 25
|
||||
GITEA__mailer__USER: ${POSTAL_SMTP_AUTH_USER}
|
||||
GITEA__mailer__PASSWD: ${POSTAL_SMTP_AUTH_PASSWORD}
|
||||
image: gitea/gitea:1.22.6
|
||||
image: gitea/gitea:1.23.1
|
||||
labels:
|
||||
homepage.group: Code/DevOps
|
||||
homepage.name: Gitea
|
||||
@@ -1185,7 +1185,7 @@ services:
|
||||
restart: always
|
||||
volumes:
|
||||
- source: ${DOCKER_VOLUME_CONFIG}/gitea
|
||||
target: /data
|
||||
target: /data/gitea
|
||||
type: bind
|
||||
bind:
|
||||
create_host_path: true
|
||||
@@ -3036,7 +3036,7 @@ services:
|
||||
TZ: America/New_York
|
||||
MYSQL_PASSWORD: VQU23wHKRNmfpAPt5E9BxMaSGJdWjLuz
|
||||
hostname: Rinoa
|
||||
image: ghcr.io/linuxserver/mariadb
|
||||
image: linuxserver/mariadb
|
||||
networks:
|
||||
default: null
|
||||
ports:
|
||||
@@ -3067,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:
|
||||
|
||||
Reference in New Issue
Block a user