File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -98,11 +98,19 @@ jobs:
9898 NEW_VERSION=$(node -p "require('./package.json').version")
9999 if [ -n "$NEW_VERSION" ] && [ "$NEW_VERSION" != "null" ]; then
100100 echo "Semantic release created version: $NEW_VERSION"
101- # Tag the existing image with the semantic version
101+ # Create frontend-prefixed version tag
102+ FRONTEND_VERSION="frontend-v$NEW_VERSION"
103+ echo "Creating release tag: $FRONTEND_VERSION"
104+
105+ # Create and push git tag for frontend release
106+ git tag "$FRONTEND_VERSION"
107+ git push origin "$FRONTEND_VERSION"
108+
109+ # Tag the existing image with the frontend-prefixed semantic version
102110 docker pull ${{ env.RAG_EVAL_UI_IMAGE }}:${{ env.SHORT_SHA }}
103- docker tag ${{ env.RAG_EVAL_UI_IMAGE }}:${{ env.SHORT_SHA }} ${{ env.RAG_EVAL_UI_IMAGE }}:$NEW_VERSION
104- docker push ${{ env.RAG_EVAL_UI_IMAGE }}:$NEW_VERSION
105- echo "Tagged and pushed image with semantic version: $NEW_VERSION "
111+ docker tag ${{ env.RAG_EVAL_UI_IMAGE }}:${{ env.SHORT_SHA }} ${{ env.RAG_EVAL_UI_IMAGE }}:$FRONTEND_VERSION
112+ docker push ${{ env.RAG_EVAL_UI_IMAGE }}:$FRONTEND_VERSION
113+ echo "Tagged and pushed image with frontend version: $FRONTEND_VERSION "
106114 else
107115 echo "No new version was created by semantic-release"
108116 fi
You can’t perform that action at this time.
0 commit comments