From e9d331152449c376d9fa023be7d1e730ddc0f785 Mon Sep 17 00:00:00 2001 From: Germey Date: Sun, 4 Aug 2024 01:51:13 +0800 Subject: [PATCH] Add build number logic (#93) Co-authored-by: AceDataCloud --- .github/workflows/deploy.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 723be493..ed5acac3 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -52,7 +52,10 @@ jobs: - name: Get Build Number run: | - echo $BUILD_NUMBER + BUILD_NUMBER=$(echo $BUILD_NUMBER) + BUILD_DATE=$(date +'%Y%m%d') + BUILD_TAG="${BUILD_DATE}.${BUILD_NUMBER}" + echo "BUILD_NUMBER=${BUILD_TAG}" >> $GITHUB_ENV - name: Build Docker images run: docker-compose build