From b10a886e0a82ce51a7320edffe77a59cf4b9b5e2 Mon Sep 17 00:00:00 2001 From: Chen Xu Date: Fri, 22 Jul 2022 19:22:50 +0800 Subject: [PATCH] Fix daily build --- .github/workflows/main_feathrregistry.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main_feathrregistry.yml b/.github/workflows/main_feathrregistry.yml index efb6547..6e78be3 100644 --- a/.github/workflows/main_feathrregistry.yml +++ b/.github/workflows/main_feathrregistry.yml @@ -18,8 +18,8 @@ jobs: runs-on: 'ubuntu-latest' steps: - - name: Set current date as env variable - run: echo "NOW::$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV + - name: Get current timestamp + run: echo "TIMESTAMP=$(date +'%Y%m%d%H%M')" >> $GITHUB_ENV - uses: actions/checkout@v2 @@ -37,7 +37,7 @@ jobs: uses: docker/build-push-action@v2 with: push: true - tags: xcacr.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_a903568e603d4f759024fd6c84e1ffb6 }}/xcacr/xcacr/windoze/feathr-registry:${{ env.NOW }} + tags: xcacr.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_a903568e603d4f759024fd6c84e1ffb6 }}/xcacr/xcacr/windoze/feathr-registry:${{ env.TIMESTAMP }} context: ./registry deploy: @@ -55,4 +55,4 @@ jobs: app-name: 'feathrregistry' slot-name: 'production' publish-profile: ${{ secrets.AzureAppService_PublishProfile_b5d78d27d28f4285903f7d1f2d0a3cde }} - images: 'xcacr.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_a903568e603d4f759024fd6c84e1ffb6 }}/xcacr/xcacr/windoze/feathr-registry:${{ env.NOW }}' \ No newline at end of file + images: 'xcacr.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_a903568e603d4f759024fd6c84e1ffb6 }}/xcacr/xcacr/windoze/feathr-registry:${{ env.TIMESTAMP }}' \ No newline at end of file