From 7e7c692156b65bc3d22a414d084a7f68b46080e6 Mon Sep 17 00:00:00 2001 From: Fu Zi Xiang Date: Wed, 27 Dec 2023 03:52:11 +0800 Subject: [PATCH] fix: github tag --- .github/workflows/push_latest_docker.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push_latest_docker.yml b/.github/workflows/push_latest_docker.yml index 91bf5e6d..014d3726 100644 --- a/.github/workflows/push_latest_docker.yml +++ b/.github/workflows/push_latest_docker.yml @@ -26,10 +26,11 @@ jobs: - name: Build and Push GoTrue run: | + export TAG=${GITHUB_REF#refs/*/} docker compose build gotrue - docker tag appflowy-cloud-gotrue appflowyinc/gotrue:${{ env.GIT_TAG }} + docker tag appflowy-cloud-gotrue appflowyinc/gotrue:$TAG echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login --username appflowyinc --password-stdin - docker push appflowyinc/gotrue:${{ env.GIT_TAG }} + docker push appflowyinc/gotrue:$TAG docker push appflowyinc/gotrue:latest appflowy_cloud_image: