Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 47084abc47 | |||
| ecdea4d07c | |||
| 628f84c14b | |||
| a52d2c9fe9 | |||
| 32bce2cdd2 | |||
| 490ed3815f |
@@ -19,6 +19,11 @@ jobs:
|
||||
image: mcr-mirror.liara.ir/dotnet/sdk:10.0.202
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
shell: bash
|
||||
run: |
|
||||
git clone --depth 1 https://git.sabp.ir/sufi-chain/dev-ops-test.git .
|
||||
|
||||
- name: Build and push image
|
||||
shell: bash
|
||||
env:
|
||||
@@ -36,11 +41,12 @@ jobs:
|
||||
tag="${RELEASE_TAG:-$REF_NAME}"
|
||||
tag="${tag#v}"
|
||||
dotnet publish DevOpsTest.csproj \
|
||||
-v:n \
|
||||
--configuration Release \
|
||||
--os linux \
|
||||
--arch x64 \
|
||||
/t:PublishContainer \
|
||||
-p:ContainerRegistry="$REGISTRY" \
|
||||
-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"
|
||||
|
||||
@@ -22,6 +22,11 @@ jobs:
|
||||
image: mcr-mirror.liara.ir/dotnet/sdk:10.0.202
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
shell: bash
|
||||
run: |
|
||||
git clone --depth 1 https://git.sabp.ir/sufi-chain/dev-ops-test.git .
|
||||
|
||||
- name: Restore selected projects
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
# 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
|
||||
|
||||
COPY DevOpsTest.csproj ./
|
||||
@@ -13,7 +13,7 @@ RUN dotnet publish DevOpsTest.csproj \
|
||||
--output /app/publish \
|
||||
/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
|
||||
|
||||
ENV ASPNETCORE_URLS=http://+:8080 \
|
||||
|
||||
Reference in New Issue
Block a user