build --build-arg TARGET_RID=android-arm64
This commit is contained in:
parent
1b24b75984
commit
6ceec55ed9
2 changed files with 5 additions and 4 deletions
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
|
|
@ -15,8 +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 -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
|
# 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: |
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,11 @@ 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)
|
||||||
|
ARG TARGET_RID=android-arm64
|
||||||
|
|
||||||
# 6. Compilation du serveur Web principal
|
# 6. Compilation du serveur Web principal, Injecter l'option -r avec la variable
|
||||||
RUN dotnet build . -c Release --no-restore -clp:ErrorsOnly
|
RUN dotnet build . -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