@@ -78,23 +78,28 @@ jobs:
7878 NEW_TAG=$(echo "$VERSION_OUTPUT" | sed -E 's/.*version ([0-9.]+[^ ]*).*/\1/')
7979 echo "Cleaned version: $NEW_TAG"
8080
81- # Append "-prerelease" if necessary
81+ # Append "-prerelease" if necessary and determine repository
8282 if [ "${{ github.event.inputs.release_environment || inputs.release_environment }}" = "staging" ]; then
8383 NEW_TAG="${NEW_TAG}-prerelease"
84+ REPO_NAME="altinityinfra"
85+ else
86+ REPO_NAME="altinity"
8487 fi
88+ echo "Repository: $REPO_NAME"
8589
8690 if [[ "$IMAGE" == *-alpine* ]]; then
8791 NEW_TAG="${NEW_TAG}-alpine"
8892 fi
8993 echo "New tag: $NEW_TAG"
9094
91- # Export the new tag
95+ # Export the new tag and repository
9296 echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV
97+ echo "REPO_NAME=$REPO_NAME" >> $GITHUB_ENV
9398
9499 - name : Process multiarch manifest
95100 run : |
96- echo "Re-tag multiarch image $IMAGE to altinity /$COMPONENT:$NEW_TAG"
97- docker buildx imagetools create --tag "altinity /$COMPONENT:$NEW_TAG" "$IMAGE"
101+ echo "Re-tag multiarch image $IMAGE to $REPO_NAME /$COMPONENT:$NEW_TAG"
102+ docker buildx imagetools create --tag "$REPO_NAME /$COMPONENT:$NEW_TAG" "$IMAGE"
98103
99104 # Create directory for image archives
100105 mkdir -p image_archives
@@ -103,15 +108,15 @@ jobs:
103108 for PLATFORM in "linux/amd64" "linux/arm64"; do
104109 echo "Pulling and saving image for $PLATFORM..."
105110 # Pull the specific platform image
106- docker pull --platform $PLATFORM "altinity /$COMPONENT:$NEW_TAG"
111+ docker pull --platform $PLATFORM "$REPO_NAME /$COMPONENT:$NEW_TAG"
107112
108113 # Save the image to a tar file
109114 ARCH=$(echo $PLATFORM | cut -d'/' -f2)
110- docker save "altinity /$COMPONENT:$NEW_TAG" -o "image_archives/${COMPONENT}-${NEW_TAG}-${ARCH}.tar"
115+ docker save "$REPO_NAME /$COMPONENT:$NEW_TAG" -o "image_archives/${COMPONENT}-${NEW_TAG}-${ARCH}.tar"
111116 done
112117
113118 # Save manifest inspection
114- docker buildx imagetools inspect "altinity /$COMPONENT:$NEW_TAG" > image_archives/manifest.txt
119+ docker buildx imagetools inspect "$REPO_NAME /$COMPONENT:$NEW_TAG" > image_archives/manifest.txt
115120
116121 # Compress the archives
117122 cd image_archives
0 commit comments