ci4
This commit is contained in:
@@ -16,7 +16,7 @@ jobs:
|
|||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: mcr-mirror.liara.ir/dotnet/sdk:10.0.202
|
image: mcr-mirror.liara.ir/dotnet/sdk:10.0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
@@ -42,5 +42,5 @@ jobs:
|
|||||||
/t:PublishContainer \
|
/t:PublishContainer \
|
||||||
-p:ContainerRegistry="$REGISTRY" \
|
-p:ContainerRegistry="$REGISTRY" \
|
||||||
-p:ContainerRepository="$IMAGE_NAME" \
|
-p:ContainerRepository="$IMAGE_NAME" \
|
||||||
-p:ContainerBaseImage=mcr-mirror.liara.ir/dotnet/aspnet:10.0.202 \
|
-p:ContainerBaseImage=mcr-mirror.liara.ir/dotnet/aspnet:10.0 \
|
||||||
-p:ContainerImageTags="$tag;latest"
|
-p:ContainerImageTags="$tag;latest"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
pack-and-push:
|
pack-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: mcr-mirror.liara.ir/dotnet/sdk:10.0.202
|
image: mcr-mirror.liara.ir/dotnet/sdk:10.0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Restore selected projects
|
- name: Restore selected projects
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM mcr-mirror.liara.ir/dotnet/sdk:10.0.202 AS build
|
FROM mcr-mirror.liara.ir/dotnet/sdk:10.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
COPY DevOpsTest.csproj ./
|
COPY DevOpsTest.csproj ./
|
||||||
@@ -13,7 +13,7 @@ RUN dotnet publish DevOpsTest.csproj \
|
|||||||
--output /app/publish \
|
--output /app/publish \
|
||||||
/p:UseAppHost=false
|
/p:UseAppHost=false
|
||||||
|
|
||||||
FROM mcr-mirror.liara.ir/dotnet/aspnet:10.0.202 AS final
|
FROM mcr-mirror.liara.ir/dotnet/aspnet:10.0 AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV ASPNETCORE_URLS=http://+:8080 \
|
ENV ASPNETCORE_URLS=http://+:8080 \
|
||||||
|
|||||||
Reference in New Issue
Block a user