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'