From cccea4b163e1f381edcd11db70ca747f56b521b7 Mon Sep 17 00:00:00 2001 From: Sai Ma Date: Mon, 24 Apr 2023 02:25:50 +0000 Subject: [PATCH] Use different Git CMD to get tag --- .github/workflows/burn-cube-image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/burn-cube-image.yml b/.github/workflows/burn-cube-image.yml index bc131f9..63d4dd6 100644 --- a/.github/workflows/burn-cube-image.yml +++ b/.github/workflows/burn-cube-image.yml @@ -63,8 +63,8 @@ jobs: - name: Get git commit hash for push to main if: github.event_name != 'release' run: | - git fetch --all --tags - echo "RELEASE=$(git describe --tags)" >> $GITHUB_ENV + echo "TAG=dev$(git rev-parse --short HEAD)" \ + >> $GITHUB_ENV - name: Push unstable image to ECR uses: whoan/docker-build-with-cache-action@master @@ -72,4 +72,4 @@ jobs: with: registry: 538673716275.dkr.ecr.ap-southeast-2.amazonaws.com image_name: ${{ env.IMAGE_NAME }} - image_tag: latest,${{ env.RELEASE }} + image_tag: latest,${{ env.TAG }}