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
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:
@@ -22,7 +22,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
git clone --depth 1 https://git.sabp.ir/sufi-chain/dev-ops-test.git .
|
git clone --depth 1 https://git.sabp.ir/sufi-chain/dev-ops-test.git .
|
||||||
|
echo "=== Workspace contents ==="
|
||||||
|
ls -la
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -38,9 +41,16 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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}"
|
tag="${tag#v}"
|
||||||
dotnet publish DevOpsTest.csproj \
|
|
||||||
|
echo "=== Building version: $tag ==="
|
||||||
|
|
||||||
|
dotnet publish "DevOpsTest/DevOpsTest/DevOpsTest.csproj" \
|
||||||
-v:n \
|
-v:n \
|
||||||
--configuration Release \
|
--configuration Release \
|
||||||
--os linux \
|
--os linux \
|
||||||
@@ -49,4 +59,4 @@ jobs:
|
|||||||
-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.202 \
|
||||||
"-p:ContainerImageTags=$tag;latest"
|
-p:ContainerImageTags="${tag};latest"
|
||||||
|
|||||||
@@ -25,7 +25,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
git clone --depth 1 https://git.sabp.ir/sufi-chain/dev-ops-test.git .
|
git clone --depth 1 https://git.sabp.ir/sufi-chain/dev-ops-test.git .
|
||||||
|
echo "=== Workspace contents ==="
|
||||||
|
ls -la
|
||||||
|
|
||||||
- name: Restore selected projects
|
- name: Restore selected projects
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -49,8 +52,13 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -p "$PACKAGE_OUTPUT"
|
mkdir -p "$PACKAGE_OUTPUT"
|
||||||
|
|
||||||
version="${RELEASE_TAG:-$REF_NAME}"
|
if [ -n "${RELEASE_TAG:-}" ]; then
|
||||||
|
version="$RELEASE_TAG"
|
||||||
|
else
|
||||||
|
version="0.0.0-dev.$(date +%Y%m%d%H%M%S)"
|
||||||
|
fi
|
||||||
version="${version#v}"
|
version="${version#v}"
|
||||||
|
echo "=== Packing version: $version ==="
|
||||||
|
|
||||||
for project in $PACKAGE_PROJECTS; do
|
for project in $PACKAGE_PROJECTS; do
|
||||||
dotnet pack "$project" \
|
dotnet pack "$project" \
|
||||||
|
|||||||
Reference in New Issue
Block a user