From f1cd28ffa13ddfee23e857f777b7e4517995e241 Mon Sep 17 00:00:00 2001 From: liyang Date: Fri, 21 Jul 2023 14:49:57 +0800 Subject: [PATCH] feat: (upload binary s3)add nightly build tag (#2011) feat: add nightly build tag --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0185c898e33..ea11585ffb13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -127,6 +127,14 @@ jobs: name: ${{ matrix.file }}.sha256sum path: target/${{ matrix.arch }}/${{ env.CARGO_PROFILE }}/${{ matrix.file }}.sha256sum + - name: Configure scheduled build image tag # the tag would be ${SCHEDULED_BUILD_VERSION_PREFIX}-YYYYMMDD-${SCHEDULED_PERIOD} + shell: bash + if: github.event_name != 'push' + run: | + buildTime=`date "+%Y%m%d"` + SCHEDULED_BUILD_VERSION=${{ env.SCHEDULED_BUILD_VERSION_PREFIX }}-$buildTime-${{ env.SCHEDULED_PERIOD }} + echo "IMAGE_TAG=${SCHEDULED_BUILD_VERSION:1}" >> $GITHUB_ENV + - name: Configure tag shell: bash if: github.event_name == 'push' @@ -303,6 +311,14 @@ jobs: name: ${{ matrix.file }}.sha256sum path: target/${{ matrix.arch }}/${{ env.CARGO_PROFILE }}/${{ matrix.file }}.sha256sum + - name: Configure scheduled build image tag # the tag would be ${SCHEDULED_BUILD_VERSION_PREFIX}-YYYYMMDD-${SCHEDULED_PERIOD} + shell: bash + if: github.event_name != 'push' + run: | + buildTime=`date "+%Y%m%d"` + SCHEDULED_BUILD_VERSION=${{ env.SCHEDULED_BUILD_VERSION_PREFIX }}-$buildTime-${{ env.SCHEDULED_PERIOD }} + echo "IMAGE_TAG=${SCHEDULED_BUILD_VERSION:1}" >> $GITHUB_ENV + - name: Configure tag shell: bash if: github.event_name == 'push'