Skip to content

Commit 6c69048

Browse files
authored
Merge 24c8e49 into 21feb38
2 parents 21feb38 + 24c8e49 commit 6c69048

File tree

821 files changed

+142
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

821 files changed

+142
-212
lines changed

.env-dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ COLOR_THEMES=normal|omsk
2222
# Moderation password of common room
2323
COMMON_ROOM_CONTROLWORD=
2424

25-
# Endpoint for all gates
26-
#GATE_ENDPOINT_HOST=onechan
27-
2825
# Uncomment to enable torgate
2926
#TORGATE_HOSTNAME=yourhost.onion
3027
#TORGATE_PUBLIC_KEY=ed25519_public_key_in_base64

.github/workflows/docker-build.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,13 @@ jobs:
2929
with:
3030
files_yaml: |
3131
onechan:
32-
- 'app/**'
33-
- 'resources/**'
34-
- 'scripts/**'
35-
- 'www/**'
36-
- 'docker/1chan.Dockerfile'
37-
- 'docker/config/1chan/*'
32+
- 'frontend/**'
3833
torgate:
39-
- 'docker/torgate.Dockerfile'
40-
- 'docker/config/torgate/*'
34+
- 'torgate/**'
4135
i2pgate:
42-
- 'docker/i2pgate.Dockerfile'
43-
- 'docker/config/i2pgate/*'
36+
- 'i2pgate/**'
4437
yggdrasilgate:
45-
- 'docker/yggdrasil.Dockerfile'
46-
- 'docker/config/yggdrasil/*'
38+
- 'yggdrasil/**'
4739
-
4840
name: Set up QEMU
4941
uses: docker/setup-qemu-action@v3
@@ -59,8 +51,8 @@ jobs:
5951
uses: docker/build-push-action@v5
6052
if: steps.filter.outputs.onechan_any_changed == 'true'
6153
with:
62-
context: .
63-
file: docker/1chan.Dockerfile
54+
context: frontend/.
55+
file: frontend/Dockerfile
6456
platforms: linux/amd64,linux/arm64
6557
push: true
6658
tags: ghcr.io/${{ github.repository }}/${{ env.ONECHAN_IMAGE_NAME }}:latest
@@ -72,8 +64,8 @@ jobs:
7264
uses: docker/build-push-action@v5
7365
if: steps.filter.outputs.torgate_any_changed == 'true'
7466
with:
75-
context: .
76-
file: docker/torgate.Dockerfile
67+
context: torgate/.
68+
file: torgate/Dockerfile
7769
platforms: linux/amd64,linux/arm64
7870
push: true
7971
tags: ghcr.io/${{ github.repository }}/${{ env.TORGATE_IMAGE_NAME }}:latest
@@ -85,8 +77,8 @@ jobs:
8577
uses: docker/build-push-action@v5
8678
if: steps.filter.outputs.i2pgate_any_changed == 'true'
8779
with:
88-
context: .
89-
file: docker/i2pgate.Dockerfile
80+
context: i2pgate/.
81+
file: i2pgate/Dockerfile
9082
platforms: linux/amd64,linux/arm64
9183
push: true
9284
tags: ghcr.io/${{ github.repository }}/${{ env.I2PGATE_IMAGE_NAME }}:latest
@@ -98,8 +90,8 @@ jobs:
9890
uses: docker/build-push-action@v5
9991
if: steps.filter.outputs.yggdrasilgate_any_changed == 'true'
10092
with:
101-
context: .
102-
file: docker/yggdrasil.Dockerfile
93+
context: yggdrasil/.
94+
file: yggdrasil/Dockerfile
10395
platforms: linux/amd64,linux/arm64
10496
push: true
10597
tags: ghcr.io/${{ github.repository }}/${{ env.YGGDRASILGATE_IMAGE_NAME }}:latest

.github/workflows/helm-build.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,28 @@ on:
44
pull_request:
55
branches:
66
- master
7-
8-
permissions: {}
9-
jobs:
107

11-
diff:
12-
runs-on: ubuntu-latest
13-
permissions:
14-
pull-requests: read
15-
outputs:
16-
buildHelm: ${{ steps.diff.outputs.buildHelm_any_changed }}
17-
steps:
18-
- uses: tj-actions/changed-files@v46.0.5
19-
id: diff
20-
with:
21-
files_yaml: |
22-
buildHelm:
23-
- 'k8s/helm/**'
24-
- '.cr.yaml'
8+
jobs:
259

2610
buildHelm:
2711
permissions:
2812
contents: write # to push chart release and create a release (helm/chart-releaser-action)
2913
packages: write # needed for ghcr access
3014
runs-on: ubuntu-latest
31-
needs: diff
32-
if: needs.diff.outputs.buildHelm == 'true'
3315
steps:
34-
35-
# Prepare
16+
3617
-
3718
name: Checkout
3819
uses: actions/checkout@v4
20+
-
21+
name: Filter
22+
uses: tj-actions/changed-files@v46.0.5
23+
id: filter
3924
with:
40-
fetch-depth: 0
25+
files_yaml: |
26+
buildHelm:
27+
- 'k8s/helm/**'
28+
- '.cr.yaml'
4129
-
4230
name: Configure Git
4331
run: |
@@ -48,11 +36,10 @@ jobs:
4836
uses: azure/setup-helm@v4
4937
with:
5038
version: v3.12.0
51-
52-
# Build
5339
-
5440
name: Run chart-releaser
5541
uses: helm/chart-releaser-action@v1.5.0
42+
if: steps.filter.outputs.buildHelm_any_changed == 'true'
5643
with:
5744
charts_dir: k8s/helm/charts
5845
config: k8s/.cr.yaml
@@ -62,12 +49,14 @@ jobs:
6249
-
6350
name: Login to ghcr
6451
uses: docker/login-action@v3.0.0
52+
if: steps.filter.outputs.buildHelm_any_changed == 'true'
6553
with:
6654
registry: ghcr.io
6755
username: ${{ github.actor }}
6856
password: ${{ secrets.GITHUB_TOKEN }}
6957
-
7058
name: Push charts to ghcr
59+
if: steps.filter.outputs.buildHelm_any_changed == 'true'
7160
run: |
7261
shopt -s nullglob
7362
for pkg in .cr-release-packages/*.tgz; do

.gitignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
*
2-
!app
3-
!docker
1+
/*
2+
!frontend
3+
!i2pgate
44
!k8s
5-
!resources
6-
!scripts
7-
!www
5+
!torgate
6+
!yggdrasil
87
!.github
98
!docker-compose.yaml
109
!LICENSE

README.md

Lines changed: 10 additions & 10 deletions

docker-compose.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ services:
1616
- 1chan
1717

1818
onechan:
19-
build:
20-
context: .
21-
dockerfile: ./docker/1chan.Dockerfile
19+
build: ./frontend
2220
container_name: onechan
2321
restart: always
2422
env_file:
@@ -57,9 +55,7 @@ services:
5755
- redis
5856

5957
torgate:
60-
build:
61-
context: .
62-
dockerfile: ./docker/torgate.Dockerfile
58+
build: ./torgate
6359
container_name: torgate
6460
depends_on:
6561
onechan:
@@ -71,9 +67,7 @@ services:
7167
- 1chan
7268

7369
i2pgate:
74-
build:
75-
context: .
76-
dockerfile: ./docker/i2pgate.Dockerfile
70+
build: ./i2pgate
7771
container_name: i2pgate
7872
depends_on:
7973
onechan:
@@ -85,9 +79,7 @@ services:
8579
- 1chan
8680

8781
yggdrasil:
88-
build:
89-
context: .
90-
dockerfile: ./docker/yggdrasil.Dockerfile
82+
build: ./yggdrasil
9183
container_name: yggdrasil
9284
depends_on:
9385
onechan:

docker/config/i2pgate/init.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

docker/config/i2pgate/tunnels.conf

Lines changed: 0 additions & 5 deletions
This file was deleted.

docker/i2pgate.Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

docker/torgate.Dockerfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)