Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit e21d57d

Browse files
committed
update for new cluster
1 parent fb690a3 commit e21d57d

File tree

5 files changed

+50
-40
lines changed

5 files changed

+50
-40
lines changed

.github/workflows/build-dev-environment.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ jobs:
5959
username: ${{ github.actor }}
6060
password: ${{ secrets.GITHUB_TOKEN }}
6161

62+
- name: Set up QEMU
63+
uses: docker/setup-qemu-action@v3
64+
65+
- name: Set up Docker BuildX
66+
uses: docker/setup-buildx-action@v3
67+
with:
68+
install: true
69+
6270
- name: Checkout source code
6371
uses: actions/checkout@v4
6472

@@ -71,22 +79,17 @@ jobs:
7179
- name: Build funixgaming api docker images and push
7280
env:
7381
IMAGE_TAG: dev
74-
run: docker compose build --push
82+
run: chmod +x ./build-images.sh && ./build-images.sh
7583

7684
update-kubernetes-cluster:
7785
needs:
7886
- build-production-docker-images
7987

80-
runs-on: ubuntu-latest
88+
runs-on:
89+
- self-hosted
90+
- k3s-funixproductions
8191

8292
steps:
83-
- name: Set up kubectl
84-
uses: azure/k8s-set-context@v4
85-
with:
86-
kubeconfig: ${{ secrets.KUBECONFIG }}
87-
env:
88-
KUBECONFIG: ${{ secrets.KUBECONFIG }}
89-
9093
- name: Checkout source code
9194
uses: actions/checkout@v4
9295

.github/workflows/build-production.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ jobs:
9292
username: ${{ github.actor }}
9393
password: ${{ secrets.GITHUB_TOKEN }}
9494

95+
- name: Set up QEMU
96+
uses: docker/setup-qemu-action@v3
97+
98+
- name: Set up Docker BuildX
99+
uses: docker/setup-buildx-action@v3
100+
with:
101+
install: true
102+
95103
- name: Checkout source code
96104
uses: actions/checkout@v4
97105

@@ -104,22 +112,17 @@ jobs:
104112
- name: Build funixgaming api docker images and push
105113
env:
106114
IMAGE_TAG: latest
107-
run: docker compose build --push
115+
run: chmod +x ./build-images.sh && ./build-images.sh
108116

109117
update-kubernetes-cluster:
110118
needs:
111119
- build-production-docker-images
112120

113-
runs-on: ubuntu-latest
121+
runs-on:
122+
- self-hosted
123+
- k3s-funixproductions
114124

115125
steps:
116-
- name: Set up kubectl
117-
uses: azure/k8s-set-context@v4
118-
with:
119-
kubeconfig: ${{ secrets.KUBECONFIG }}
120-
env:
121-
KUBECONFIG: ${{ secrets.KUBECONFIG }}
122-
123126
- name: Checkout source code
124127
uses: actions/checkout@v4
125128

build-images.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
set -e
3+
4+
PLATFORMS="linux/amd64,linux/arm64"
5+
6+
build_and_push() {
7+
SERVICE_NAME=$1
8+
SERVICE_DIR=$2
9+
IMAGE="ghcr.io/funixproductions/funixgaming-api-${SERVICE_NAME}:${IMAGE_TAG}"
10+
11+
echo "➡️ Building $SERVICE_NAME from $SERVICE_DIR"
12+
13+
docker buildx build \
14+
--platform $PLATFORMS \
15+
--build-arg service_name=$SERVICE_NAME \
16+
--build-arg service_base_dir=$SERVICE_DIR \
17+
--tag $IMAGE \
18+
--push \
19+
.
20+
}
21+
22+
# Liste de tes microservices
23+
build_and_push "funixbot" "funixbot"
24+
build_and_push "twitch" "twitch"

docker-compose.yml

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

kubernetes-dev/config/certificates-ssl/certificate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ spec:
88
issuerRef:
99
name: letsencrypt
1010
kind: ClusterIssuer
11-
commonName: "dev.api.funixgaming.fr"
11+
commonName: "dev-api.funixgaming.fr"
1212
dnsNames:
13-
- "dev.api.funixgaming.fr"
13+
- "dev-api.funixgaming.fr"

0 commit comments

Comments
 (0)