forked from PluralFlux/PluralFlux
Compare commits
13 Commits
refactor-a
...
bf4f55c91b
| Author | SHA1 | Date | |
|---|---|---|---|
| bf4f55c91b | |||
| b3566010a2 | |||
| 0eee2988ce | |||
| a86260cc4a | |||
| 506e3ef9dd | |||
| 6a33fb592a | |||
| 2f255cefd1 | |||
| c54016de77 | |||
| 31da15eaeb | |||
| 43f4302dbc | |||
| af3da44946 | |||
| af57e2e6a3 | |||
| 77191566e3 |
45
.gitea/workflows/build-dev.yml
Normal file
45
.gitea/workflows/build-dev.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
name: nodeJS remote worker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["develop"]
|
||||
pull_request:
|
||||
branches: ["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:latest
|
||||
|
||||
- name: Deploy bot
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
port: 22
|
||||
script: |
|
||||
cd /root/pluralflux-dev/PluralFlux
|
||||
docker compose up -d
|
||||
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 /root/pluralflux-prod/PluralFlux
|
||||
docker compose up -d
|
||||
21
compose.yaml
21
compose.yaml
@@ -1,17 +1,15 @@
|
||||
services:
|
||||
main:
|
||||
build: .
|
||||
image: engineering.sanya.gay/pluralflux/pluralflux-dev
|
||||
container_name: pluralflux
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- pluralflux-net
|
||||
env_file: "secrets.env"
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
container_name: pluralflux-postgres
|
||||
environment:
|
||||
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_pwd
|
||||
secrets:
|
||||
- postgres_pwd
|
||||
env_file: "secrets.env"
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql
|
||||
ports:
|
||||
@@ -23,13 +21,7 @@ services:
|
||||
container_name: pluralflux-pgadmin
|
||||
ports:
|
||||
- "5050:80"
|
||||
environment:
|
||||
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
|
||||
env_file: "secrets.env"
|
||||
depends_on:
|
||||
- postgres
|
||||
networks:
|
||||
@@ -40,7 +32,4 @@ networks:
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
|
||||
secrets:
|
||||
postgres_pwd:
|
||||
file: ./secrets/postgres-password.txt
|
||||
secrets:
|
||||
|
||||
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