mirror of
https://github.com/Telecominfraproject/wlan-cloud-rrm.git
synced 2025-10-29 09:42:22 +00:00
Fix build version generation in CI/CD (#40)
Signed-off-by: Jeffrey Han <39203126+elludraon@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -38,6 +38,7 @@ jobs:
|
||||
registry: tip-tip-wlan-cloud-ucentral.jfrog.io
|
||||
registry_user: ucentral
|
||||
registry_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
||||
checkout_fetch_depth: 0
|
||||
|
||||
- name: Notify on failure via Slack
|
||||
if: failure() && github.ref == 'refs/heads/main'
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
if [ -d .git ] && [ -x "$(command -v git)" ]; then
|
||||
BUILD_NUM="$(git rev-list --count --first-parent HEAD)"
|
||||
HASH="$(git rev-parse --short HEAD)"
|
||||
echo "-$HASH($BUILD_NUM)"
|
||||
echo " - $HASH($BUILD_NUM)"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user