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

Commit 4ecfdc7

Browse files
committed
fix arm build
1 parent d25a742 commit 4ecfdc7

File tree

3 files changed

+35
-115
lines changed

3 files changed

+35
-115
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ jobs:
7676
name: maven-packages
7777
path: modules
7878

79-
- name: Build funixproductions api docker images and push
80-
env:
81-
IMAGE_TAG: dev
82-
run: docker compose build --push
79+
- name: Build and push ARM images using buildx
80+
run: chmod +x ./build-images.sh && ./build-images.sh
8381

8482
deploy-to-kubernetes-cluster:
8583
needs:

build-images.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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/funixproductions-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 "encryption" "encryption"
24+
build_and_push "user" "user"
25+
build_and_push "google-auth" "google/auth"
26+
build_and_push "google-gmail" "google/gmail"
27+
build_and_push "google-recaptcha" "google/reCaptcha"
28+
build_and_push "accounting" "accounting"
29+
build_and_push "payment-paypal" "payment/paypal"
30+
build_and_push "payment-billing" "payment/billing"
31+
build_and_push "twitch-auth" "twitch/auth"
32+
build_and_push "twitch-eventsub" "twitch/eventsub"
33+
build_and_push "twitch-reference" "twitch/reference"

docker-compose.yml

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

0 commit comments

Comments
 (0)