build --build-arg TARGET_RID=android-arm64

This commit is contained in:
Paul Schneider 2026-06-07 12:19:18 +01:00
commit 6ceec55ed9
2 changed files with 5 additions and 4 deletions

View file

@ -15,8 +15,7 @@ jobs:
# 1. Votre étape de build actuelle (on nomme l'image "postit-android")
- name: Build de l'image Docker
run: docker build -t postit-android .
run: docker build --build-arg TARGET_RID=android-arm64 -t postit-android .
# 2. EXTRACTION : Créer un conteneur éphémère pour copier l'APK vers l'hôte GitHub
- name: Extraire l'APK du conteneur Docker
run: |

View file

@ -34,9 +34,11 @@ RUN dotnet restore
# 5. Copie de la totalité du code source (filtrée par votre .dockerignore)
COPY . .
# Définir une variable d'architecture par défaut (ex: android-arm64)
ARG TARGET_RID=android-arm64
# 6. Compilation du serveur Web principal
RUN dotnet build . -c Release --no-restore -clp:ErrorsOnly
# 6. Compilation du serveur Web principal, Injecter l'option -r avec la variable
RUN dotnet build . -c Release --no-restore -clp:ErrorsOnly -r ${TARGET_RID}
# Définition du répertoire d'exécution par défaut
CMD ["bash"]