Try build with docker-in-docker image
This commit is contained in:
@ -8,13 +8,13 @@ metadata:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: r.j3ss.co/img
|
image: docker
|
||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
TOKEN:
|
TOKEN:
|
||||||
from_secret: gitea
|
from_secret: gitea
|
||||||
commands:
|
commands:
|
||||||
- img login -u kieran -p $TOKEN git.v0l.io
|
- docker login -u kieran -p $TOKEN git.v0l.io
|
||||||
- img build -t git.v0l.io/kieran/nostr-services:latest -f NostrServices/Dockerfile .
|
- docker build -t git.v0l.io/kieran/nostr-services:latest -f NostrServices/Dockerfile .
|
||||||
- img push git.v0l.io/kieran/nostr-services:latest
|
- docker push git.v0l.io/kieran/nostr-services:latest
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
|
||||||
USER $APP_UID
|
USER $APP_UID
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["NostrServices/NostrServices.csproj", "NostrServices/"]
|
COPY ["NostrServices/NostrServices.csproj", "NostrServices/"]
|
||||||
|
Reference in New Issue
Block a user