go
continuous-integration/drone/push Build is failing Details

pull/14/head
Victor Perez NGOUNOU 2 years ago
parent 4083afdaa1
commit 6987a72ab8

@ -33,13 +33,49 @@ steps:
- name: docs
path: /docs
commands:
#- cd Documentation/doxygen
#- doxygen Doxyfile
- cd Documentation/doxygen
- doxygen Doxyfile
- /entrypoint.sh
when:
branch:
- master
depends_on: [ build ]
# docker image build
- name: docker-build-and-push-api-rest
image: plugins/docker
settings:
dockerfile: Sources/BowlingAPI/Dockerfile
context: .
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/victor_perez.ngounou/BowlingGameAPI
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
depends_on: [ build ]
- name: docker-build-and-push-api-gateway
image: plugins/docker
settings:
dockerfile: Sources/"Bowling Api Gateway"/Dockerfile
context: .
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/victor_perez.ngounou/BowlingGameAPI
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
depends_on: [ build ]
# container deployment
#- name: deploy-container
# image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
#environment:
# IMAGENAME: hub.codefirst.iut.uca.fr/victor_perez.ngounou/BowlingGameAPI:latest
#CONTAINERNAME: my_container_name
#COMMAND: create
#OVERWRITE: true
volumes:
- name: docs

@ -0,0 +1,25 @@
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.idea
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md

@ -5,6 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>Bowling_Api_Gateway</RootNamespace>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>
<ItemGroup>
@ -19,4 +20,10 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Content Include="..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
</ItemGroup>
</Project>

@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["Bowling Api Gateway/Bowling Api Gateway.csproj", "Bowling Api Gateway/"]
RUN dotnet restore "Bowling Api Gateway/Bowling Api Gateway.csproj"
COPY . .
WORKDIR "/src/Bowling Api Gateway"
RUN dotnet build "Bowling Api Gateway.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Bowling Api Gateway.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Bowling Api Gateway.dll"]

@ -5,6 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>10</LangVersion>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>
<PropertyGroup Condition=" '$(RunConfiguration)' == 'https' " />
@ -44,4 +45,10 @@
<None Remove="Microsoft.EntityFrameworkCore.Sqlite" />
</ItemGroup>
<ItemGroup>
<Content Include="..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
</ItemGroup>
</Project>

@ -0,0 +1,26 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["BowlingApi/BowlingApi.csproj", "BowlingApi/"]
COPY ["BowlingService/BowlingService.csproj", "BowlingService/"]
COPY ["BowlingLib/BowlingLib.csproj", "BowlingLib/"]
COPY ["BowlingRepository/BowlingRepository.csproj", "BowlingRepository/"]
COPY ["BowlingEF/BowlingEF.csproj", "BowlingEF/"]
COPY ["DTOs/DTOs.csproj", "DTOs/"]
COPY ["Mapper/Mapper.csproj", "Mapper/"]
RUN dotnet restore "BowlingApi/BowlingApi.csproj"
COPY . .
WORKDIR "/src/BowlingApi"
RUN dotnet build "BowlingApi.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "BowlingApi.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "BowlingApi.dll"]
Loading…
Cancel
Save