From a5bf4c1a61aadbb01f9af5277369a3001f80894f Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Wed, 9 Feb 2022 21:46:07 +0530 Subject: [PATCH] =?UTF-8?q?ci(push):=20=F0=9F=91=B7=20push=20workflow=20up?= =?UTF-8?q?date=20(#695)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci(push): 👷 remove prefix v for docker images Signed-off-by: Prashant Shahi * ci(push): 👷 remove path trigger and update tags regex Signed-off-by: Prashant Shahi --- .github/workflows/push.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 7cf2f7e0a3..2f39f28af1 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -2,14 +2,11 @@ name: push on: push: - paths: - - 'pkg/query-service/**' - - 'frontend/**' branches: - main - develop tags: - - ^v[0-9]+.[0-9]+.[0-9]+$ + - v* jobs: @@ -37,7 +34,9 @@ jobs: - name: Set docker tag environment run: | if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then - echo "DOCKER_TAG=${{ steps.branch-name.outputs.tag }}" >> $GITHUB_ENV + tag="${{ steps.branch-name.outputs.tag }}" + tag="${tag:1}" + echo "DOCKER_TAG=$tag" >> $GITHUB_ENV elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then echo "DOCKER_TAG=latest" >> $GITHUB_ENV else @@ -79,7 +78,9 @@ jobs: - name: Set docker tag environment run: | if [ '${{ steps.branch-name.outputs.is_tag }}' == 'true' ]; then - echo "DOCKER_TAG=${{ steps.branch-name.outputs.tag }}" >> $GITHUB_ENV + tag="${{ steps.branch-name.outputs.tag }}" + tag="${tag:1}" + echo "DOCKER_TAG=$tag" >> $GITHUB_ENV elif [ '${{ steps.branch-name.outputs.current_branch }}' == 'main' ]; then echo "DOCKER_TAG=latest" >> $GITHUB_ENV else