Adding world workflow
Deploy Promiscuity Auth API / deploy (push) Successful in 48s
Deploy Promiscuity Character API / deploy (push) Successful in 47s
Deploy Promiscuity Crafting API / deploy (push) Successful in 47s
Deploy Promiscuity Inventory API / deploy (push) Successful in 46s
Deploy Promiscuity Locations API / deploy (push) Successful in 47s
Deploy Promiscuity Mail API / deploy (push) Successful in 46s
Deploy Promiscuity World API / deploy (push) Failing after 47s
k8s smoke test / test (push) Successful in 9s

This commit is contained in:
Zeeshaun
2026-04-01 19:58:15 +00:00
parent 2bed6aae4f
commit bed8e91bc0
4 changed files with 143 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["WorldApi.csproj", "./"]
RUN dotnet restore "WorldApi.csproj"
COPY . .
RUN dotnet publish "WorldApi.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8080 \
ASPNETCORE_ENVIRONMENT=Production
EXPOSE 8080
ENTRYPOINT ["dotnet", "WorldApi.dll"]
@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: promiscuity-world
labels:
app: promiscuity-world
spec:
replicas: 2
selector:
matchLabels:
app: promiscuity-world
template:
metadata:
labels:
app: promiscuity-world
spec:
containers:
- name: promiscuity-world
image: promiscuity-world:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 5004
readinessProbe:
httpGet:
path: /healthz
port: 5004
initialDelaySeconds: 5
periodSeconds: 10
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: promiscuity-world
labels:
app: promiscuity-world
spec:
selector:
app: promiscuity-world
type: NodePort
ports:
- name: http
port: 80
targetPort: 5004
nodePort: 30084