Skip to content

Commit 0e3a31c

Browse files
darthkalidannysteinbrecher
andauthored
fix: create and push frontend-prefixed version tags during release (#47)
Co-authored-by: dannysteinbrecher <[email protected]>
1 parent 4d82eb0 commit 0e3a31c

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/frontend-build-and-push.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)