Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| eba4315e92 | |||
| 815814e765 |
@@ -101,7 +101,11 @@ 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 .
|
||||||
|
pwd
|
||||||
|
echo "=== Workspace contents ==="
|
||||||
|
ls -la
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -116,6 +120,14 @@ jobs:
|
|||||||
echo "HARBOR_USERNAME and HARBOR_PASSWORD secrets are required."
|
echo "HARBOR_USERNAME and HARBOR_PASSWORD secrets are required."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "=== Looking for project file ==="
|
||||||
|
find . -name "DevOpsTest.csproj" -type f
|
||||||
|
|
||||||
|
if [ ! -f "DevOpsTest/DevOpsTest/DevOpsTest.csproj" ]; then
|
||||||
|
echo "ERROR: DevOpsTest/DevOpsTest/DevOpsTest.csproj not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
tag="${RELEASE_TAG:-$REF_NAME}"
|
tag="${RELEASE_TAG:-$REF_NAME}"
|
||||||
tag="${tag#v}"
|
tag="${tag#v}"
|
||||||
|
|||||||
Reference in New Issue
Block a user