This repository was archived by the owner on Aug 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +50
-40
lines changed
kubernetes-dev/config/certificates-ssl Expand file tree Collapse file tree 5 files changed +50
-40
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments