forked from PluralFlux/PluralFlux
Compare commits
28 Commits
main
...
sync-on-de
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ec327a149 | |||
| ce57d15b29 | |||
| 2114362dbb | |||
| d1c1754212 | |||
| 7d438b1492 | |||
| c16b397cfa | |||
| e862d7c178 | |||
| e40c1266c2 | |||
| b8e155bcc5 | |||
| 2551ab4343 | |||
| 135962267d | |||
| 24802f1b75 | |||
| dbdb9fc38c | |||
| a3e0aa73b4 | |||
| 690344934b | |||
| bf4f55c91b | |||
| b3566010a2 | |||
| 0eee2988ce | |||
| a86260cc4a | |||
| 506e3ef9dd | |||
| 6a33fb592a | |||
| 2f255cefd1 | |||
| c54016de77 | |||
| 31da15eaeb | |||
| 43f4302dbc | |||
| af3da44946 | |||
| af57e2e6a3 | |||
| 77191566e3 |
46
.gitea/workflows/build-dev.yml
Normal file
46
.gitea/workflows/build-dev.yml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: Build Dev instance
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["develop", "Develop"]
|
||||||
|
pull_request:
|
||||||
|
branches: ["develop", "Develop"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker BuildX
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: login to gitea registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ gitea.server_url }}
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.GITEA }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
engineering.sanya.gay/pluralflux/pluralflux-dev:latest
|
||||||
|
|
||||||
|
- name: Deploy bot
|
||||||
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
port: 22
|
||||||
|
script: |
|
||||||
|
cd ${{ secrets.BOT_DIRECTORY }}
|
||||||
|
docker compose up -d pluralflux-dev
|
||||||
46
.gitea/workflows/build-main.yml
Normal file
46
.gitea/workflows/build-main.yml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: nodeJS remote worker
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
pull_request:
|
||||||
|
branches: ["main"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker BuildX
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: login to gitea registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ gitea.server_url }}
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.GITEA }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
engineering.sanya.gay/pluralflux/pluralflux:latest
|
||||||
|
|
||||||
|
- name: Deploy bot
|
||||||
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
port: 22
|
||||||
|
script: |
|
||||||
|
cd ${{ secrets.BOT_DIRECTORY }}
|
||||||
|
docker compose up -d pluralflux-prod
|
||||||
26
.gitea/workflows/sync-from-mirror.yaml
Normal file
26
.gitea/workflows/sync-from-mirror.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Auto-Sync from Mirror
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
repository: "Pluralflux/Pluralflux"
|
||||||
|
branches: [main,develop]
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Fork
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
|
- name: Pull from Mirror
|
||||||
|
run: |
|
||||||
|
git remote add upstream https://engineering.sanya.gay/PluralFlux/PluralFlux.git
|
||||||
|
git fetch upstream --prune
|
||||||
|
git reset --hard origin/main
|
||||||
|
git push origin "refs/remotes/upstream/*:refs/heads/*" --force-with-lease
|
||||||
|
git merge upstream/main -m "Syncing from github"
|
||||||
|
git push origin main
|
||||||
63
compose.yaml
63
compose.yaml
@@ -1,21 +1,34 @@
|
|||||||
services:
|
services:
|
||||||
main:
|
pluralflux-dev:
|
||||||
build: .
|
image: engineering.sanya.gay/pluralflux/pluralflux-dev:latest
|
||||||
container_name: pluralflux
|
container_name: pluralflux-dev
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- pluralflux-dev-net
|
||||||
|
env_file: "variables.env"
|
||||||
|
pluralflux-prod:
|
||||||
|
image: engineering.sanya.gay/pluralflux/pluralflux:latest
|
||||||
|
container_name: pluralflux-prod
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- pluralflux-net
|
- pluralflux-net
|
||||||
postgres:
|
env_file: "variables-prod.env"
|
||||||
|
postgres-dev:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
container_name: pluralflux-postgres
|
container_name: pluralflux-dev-postgres
|
||||||
environment:
|
env_file: "variables.env"
|
||||||
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_pwd
|
volumes:
|
||||||
secrets:
|
- pgdataDev:/var/lib/postgresql
|
||||||
- postgres_pwd
|
- ./pgBackup:/mnt/pgBackup
|
||||||
|
networks:
|
||||||
|
- pluralflux-dev-net
|
||||||
|
postgres-prod:
|
||||||
|
image: postgres:latest
|
||||||
|
container_name: pluralflux-prod-postgres
|
||||||
|
env_file: "variables-prod.env"
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql
|
- pgdata:/var/lib/postgresql
|
||||||
ports:
|
- ./pgBackup/prod/:/mnt/pgBackup/prod
|
||||||
- "5432:5432"
|
|
||||||
networks:
|
networks:
|
||||||
- pluralflux-net
|
- pluralflux-net
|
||||||
pgadmin:
|
pgadmin:
|
||||||
@@ -23,24 +36,24 @@ services:
|
|||||||
container_name: pluralflux-pgadmin
|
container_name: pluralflux-pgadmin
|
||||||
ports:
|
ports:
|
||||||
- "5050:80"
|
- "5050:80"
|
||||||
environment:
|
env_file: "variables.env"
|
||||||
PGADMIN_DEFAULT_EMAIL: code@asterfialla.com
|
|
||||||
PGADMIN_DEFAULT_PASSWORD_FILE: /run/secrets/postgres_pwd
|
|
||||||
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
|
||||||
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
|
|
||||||
secrets:
|
|
||||||
- postgres_pwd
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres-dev
|
||||||
|
- postgres-prod
|
||||||
networks:
|
networks:
|
||||||
- pluralflux-net
|
- pluralflux-net
|
||||||
|
- pluralflux-dev-net
|
||||||
|
volumes:
|
||||||
|
- pgadmindata:/var/lib/pgadmin
|
||||||
|
- ./pgBackup:/mnt/host
|
||||||
|
# uncomment the above line if you plan to restore / backup dump files from PGAdmin UI
|
||||||
networks:
|
networks:
|
||||||
pluralflux-net:
|
pluralflux-net:
|
||||||
|
driver: bridge
|
||||||
|
pluralflux-dev-net:
|
||||||
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdataDev:
|
||||||
|
pgadmindata:
|
||||||
secrets:
|
pgdata:
|
||||||
postgres_pwd:
|
|
||||||
file: ./secrets/postgres-password.txt
|
|
||||||
6
secrets.env
Normal file
6
secrets.env
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FLUXER_BOT_TOKEN=<your bot token here>
|
||||||
|
POSTGRES_PASSWORD=<your postgres password here>
|
||||||
|
PGADMIN_DEFAULT_EMAIL: <default postgres admin login>
|
||||||
|
PGADMIN_DEFAULT_PASSWORD: <your postgres password here>
|
||||||
|
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
||||||
|
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
|
||||||
Reference in New Issue
Block a user