user -r only for android build
This commit is contained in:
parent
6ceec55ed9
commit
addf24a8f1
3 changed files with 8 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
|
|
||||||
# 1. Votre étape de build actuelle (on nomme l'image "postit-android")
|
# 1. Votre étape de build actuelle (on nomme l'image "postit-android")
|
||||||
- name: Build de l'image Docker
|
- name: Build de l'image Docker
|
||||||
run: docker build --build-arg TARGET_RID=android-arm64 -t postit-android .
|
run: docker build --build-arg ANDROID_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
|
# 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
|
- name: Extraire l'APK du conteneur Docker
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -35,10 +35,15 @@ RUN dotnet restore
|
||||||
# 5. Copie de la totalité du code source (filtrée par votre .dockerignore)
|
# 5. Copie de la totalité du code source (filtrée par votre .dockerignore)
|
||||||
COPY . .
|
COPY . .
|
||||||
# Définir une variable d'architecture par défaut (ex: android-arm64)
|
# Définir une variable d'architecture par défaut (ex: android-arm64)
|
||||||
ARG TARGET_RID=android-arm64
|
ARG ANDROID_TARGET_RID=android-arm64
|
||||||
|
|
||||||
# 6. Compilation du serveur Web principal, Injecter l'option -r avec la variable
|
# 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}
|
RUN dotnet build src/Yavsc.Org/Yavsc.Org.csproj -c Release --no-restore -clp:ErrorsOnly -r ${TARGET_RID}
|
||||||
|
RUN dotnet build src/Yavsc.Api/Yavsc.Api.csproj -c Release --no-restore -clp:ErrorsOnly -r ${TARGET_RID}
|
||||||
|
RUN dotnet build src/Yavsc.Blogs/Yavsc.Blogs.csproj -c Release --no-restore -clp:ErrorsOnly -r ${ANDROID_TARGET_RID}
|
||||||
|
|
||||||
|
# 6. Compilation du serveur Web principal Injecter l'option -r avec la variable
|
||||||
|
RUN dotnet build src/PostIt/PostIt.Android/PostIt.Android.csproj -c Release --no-restore -clp:ErrorsOnly -r ${TARGET_RID}
|
||||||
|
|
||||||
# Définition du répertoire d'exécution par défaut
|
# Définition du répertoire d'exécution par défaut
|
||||||
CMD ["bash"]
|
CMD ["bash"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue