2.0.3
Release Docker Image / build-and-push (release) Failing after 12s
Release NuGet Packages / pack-and-push (release) Successful in 1m44s
Release (Orchestrated) / build-and-push-docker (release) Has been cancelled
Release (Orchestrated) / build-and-push-nuget (release) Has been cancelled

This commit is contained in:
2026-05-20 17:31:16 +03:30
parent 98c57d5f30
commit 808ed11e53
2 changed files with 22 additions and 4 deletions
+13 -3
View File
@@ -22,7 +22,10 @@ jobs:
- name: Checkout
shell: bash
run: |
set -euo pipefail
git clone --depth 1 https://git.sabp.ir/sufi-chain/dev-ops-test.git .
echo "=== Workspace contents ==="
ls -la
- name: Build and push image
shell: bash
@@ -38,9 +41,16 @@ jobs:
exit 1
fi
tag="${RELEASE_TAG:-$REF_NAME}"
if [ -n "${RELEASE_TAG:-}" ]; then
tag="$RELEASE_TAG"
else
tag="0.0.0-dev.$(date +%Y%m%d%H%M%S)"
fi
tag="${tag#v}"
dotnet publish DevOpsTest.csproj \
echo "=== Building version: $tag ==="
dotnet publish "DevOpsTest/DevOpsTest/DevOpsTest.csproj" \
-v:n \
--configuration Release \
--os linux \
@@ -49,4 +59,4 @@ jobs:
-p:ContainerRegistry="$REGISTRY" \
-p:ContainerRepository="$IMAGE_NAME" \
-p:ContainerBaseImage=mcr-mirror.liara.ir/dotnet/aspnet:10.0.202 \
"-p:ContainerImageTags=$tag;latest"
-p:ContainerImageTags="${tag};latest"