Skip to content

Commit b7b69e3

Browse files
committed
full project rewrite with a better architecture
1 parent f945a55 commit b7b69e3

37 files changed

+1073
-468
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/build-all.yml

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,53 @@
1-
name: build aio-all
1+
name: Build and Push Multiple Images
22

33
on:
44
workflow_dispatch:
55

66
jobs:
7-
docker:
7+
build-and-push:
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
include:
12+
- variant: latest
13+
version: 1.0.0
14+
- variant: bun
15+
version: 1.2.9
16+
- variant: mariadb
17+
version: 10.11.11
18+
- variant: node
19+
version: 21.7.3
20+
- variant: pg
21+
version: 16.8.0
22+
- variant: php
23+
version: 8.3.15
24+
fail-fast: false
25+
926
steps:
10-
- name: Set up QEMU
11-
uses: docker/setup-qemu-action@v3
12-
13-
- name: Set up Docker Buildx
14-
uses: docker/setup-buildx-action@v3
15-
16-
- name: Login to Docker Hub
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
30+
- name: Login to Docker Hub Registry
1731
uses: docker/login-action@v3
1832
with:
1933
username: ${{ vars.DOCKERHUB_USERNAME }}
2034
password: ${{ secrets.DOCKERHUB_TOKEN }}
2135

36+
- name: Set up QEMU
37+
uses: docker/setup-qemu-action@v3
38+
39+
- name: Set up Docker Buildx
40+
uses: docker/setup-buildx-action@v3
41+
2242
- name: Build and push
2343
uses: docker/build-push-action@v6
2444
with:
25-
file: ./Dockerfile
26-
platforms: linux/amd64,linux/arm64
2745
push: true
46+
file: ./src/${{ matrix.variant }}/Dockerfile
47+
platforms: linux/amd64,linux/arm64
48+
build-args: |
49+
VARIANT=${{ matrix.variant }}
50+
VERSION=${{ matrix.version }}
2851
tags: |
29-
tdim/aio-server:latest
30-
tdim/aio-server:2.3.0
52+
${{ vars.DOCKERHUB_USERNAME }}/aio:${{ matrix.variant }}
53+
${{ vars.DOCKERHUB_USERNAME }}/aio:${{ matrix.variant }}-${{ matrix.version }}

.github/workflows/build-mariadb.yml

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

.github/workflows/build-one.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build and Push One Image
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
variant:
7+
description: "Image Variant (e.g. latest)"
8+
required: true
9+
default: "latest"
10+
version:
11+
description: "Image Version (e.g. 1.0.0)"
12+
required: true
13+
default: "1.0.0"
14+
15+
jobs:
16+
build-and-push:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Login to Docker Hub Registry
21+
uses: docker/login-action@v3
22+
with:
23+
username: ${{ vars.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Build and push
33+
uses: docker/build-push-action@v6
34+
with:
35+
push: true
36+
file: ./src/${{ github.event.inputs.variant }}/Dockerfile
37+
platforms: linux/amd64,linux/arm64
38+
build-args: |
39+
VARIANT=${{ github.event.inputs.variant }}
40+
VERSION=${{ github.event.inputs.version }}
41+
tags: |
42+
${{ vars.DOCKERHUB_USERNAME }}/aio:${{ github.event.inputs.variant }}
43+
${{ vars.DOCKERHUB_USERNAME }}/aio:${{ github.event.inputs.variant }}-${{ github.event.inputs.version }}

.github/workflows/build-web.yml

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

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

Dockerfile

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

Dockerfile.mariadb

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

Dockerfile.web

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

LICENSE

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

0 commit comments

Comments
 (0)