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