@@ -75,11 +75,11 @@ jobs:
7575 if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
7676 run : |
7777 if [ ! -f "VERSION" ]; then
78- echo "❌ VERSION file not found in repository root"
78+ echo "VERSION file not found in repository root"
7979 echo "Please create a VERSION file with a semantic version (e.g., v1.0.0)"
8080 exit 1
8181 fi
82- echo "✅ VERSION file exists"
82+ echo "VERSION file exists"
8383
8484 - name : Check VERSION file updated and greater
8585 id : check_version_file_updated_and_greater
9191
9292 # Check if versions are the same
9393 if [ "$PR_VERSION" == "$MAIN_VERSION" ]; then
94- echo "❌ VERSION file has not been updated"
94+ echo "VERSION file has not been updated"
9595 echo "Current VERSION: $PR_VERSION"
9696 echo "Main branch VERSION: $MAIN_VERSION"
9797 echo "Please update the VERSION file with a new semantic version"
@@ -101,7 +101,7 @@ jobs:
101101 echo "PR_VERSION=$PR_VERSION" >> "$GITHUB_OUTPUT"
102102 echo "MAIN_VERSION=$MAIN_VERSION" >> "$GITHUB_OUTPUT"
103103 else
104- echo "✅ VERSION file is new (not present in main branch)"
104+ echo "VERSION file is new (not present in main branch)"
105105 fi
106106
107107 - name : Compare PR and main VERSION using shared action
@@ -120,20 +120,20 @@ jobs:
120120 RESULT="${{ steps.compare_pr_main_version.outputs.result }}"
121121
122122 if [ "$RESULT" = "eq" ]; then
123- echo "❌ VERSION is the same as main branch (after removing metadata)"
123+ echo "VERSION is the same as main branch (after removing metadata)"
124124 echo "PR VERSION: $PR_VERSION"
125125 echo "Main branch VERSION: $MAIN_VERSION"
126126 echo "Please update the VERSION file with a greater semantic version"
127127 exit 1
128128 elif [ "$RESULT" = "lt" ]; then
129- echo "❌ VERSION is less than main branch version"
129+ echo "VERSION is less than main branch version"
130130 echo "PR VERSION: $PR_VERSION"
131131 echo "Main branch VERSION: $MAIN_VERSION"
132132 echo "Please update the VERSION file with a greater semantic version"
133133 exit 1
134134 fi
135135
136- echo "✅ VERSION file has been updated and is greater"
136+ echo "VERSION file has been updated and is greater"
137137 echo "Main branch: $MAIN_VERSION"
138138 echo "PR branch: $PR_VERSION"
139139
@@ -144,7 +144,7 @@ jobs:
144144
145145 # Check that version starts with 'v'
146146 if [[ ! "$VERSION" == v* ]]; then
147- echo "❌ Version must start with 'v' prefix"
147+ echo "Version must start with 'v' prefix"
148148 echo "Current version: $VERSION"
149149 echo "Expected format: v1.0.0 (semantic versioning with 'v' prefix)"
150150 exit 1
@@ -155,17 +155,17 @@ jobs:
155155
156156 # Validate semantic versioning format (major.minor.patch)
157157 if [[ ! $VERSION_CLEAN =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.-]+)?(\+[a-zA-Z0-9.-]+)?$ ]]; then
158- echo "❌ Invalid version format: $VERSION"
158+ echo "Invalid version format: $VERSION"
159159 echo "Expected format: v1.0.0 (semantic versioning with 'v' prefix)"
160160 exit 1
161161 fi
162162
163- echo "✅ Valid version: $VERSION"
163+ echo "Valid version: $VERSION"
164164
165165 - name : Skip check for non-PR events
166166 if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
167167 run : |
168- echo "⏭️ Skipping VERSION check (not a PR or PR is from a fork)"
168+ echo "Skipping VERSION check (not a PR or PR is from a fork)"
169169
170170 parse_tags :
171171 name : Parse tags
@@ -174,26 +174,43 @@ jobs:
174174 tags : ${{ steps.parse_tags.outputs.tags }}
175175 has_custom_tags : ${{ steps.parse_tags.outputs.has_custom_tags }}
176176 steps :
177+ - name : Debug - Show received tags
178+ run : |
179+ echo "Event name: ${{ github.event_name }}"
180+ echo "Received tag input: '${{ github.event.inputs.tag }}'"
181+ if [ -n "${{ github.event.inputs.tag }}" ]; then
182+ echo "Tags breakdown:"
183+ TAGS="${{ github.event.inputs.tag }}"
184+ IFS=',' read -ra TAG_ARRAY <<< "$TAGS"
185+ for tag in "${TAG_ARRAY[@]}"; do
186+ echo " - $tag"
187+ done
188+ fi
189+
177190 - name : Parse tags
178191 id : parse_tags
179192 shell : bash
180193 run : |
181194 if [ "${{ github.event_name }}" == "workflow_dispatch" ] && [ -n "${{ github.event.inputs.tag }}" ]; then
195+ echo "Parsing tags from input: '${{ github.event.inputs.tag }}'"
182196 # Parse comma-separated tags and output as multiline string for docker/metadata-action
183197 IFS=',' read -ra TAGS <<< "${{ github.event.inputs.tag }}"
184198 TAGS_OUTPUT=""
185199 for tag in "${TAGS[@]}"; do
186200 tag=$(echo "$tag" | xargs) # trim whitespace
187201 if [ -n "$tag" ]; then
188202 TAGS_OUTPUT="${TAGS_OUTPUT}type=raw,value=${tag}"$'\n'
203+ echo "Added tag: ${tag}"
189204 fi
190205 done
191206 echo "tags<<EOF" >> $GITHUB_OUTPUT
192207 echo "$TAGS_OUTPUT" >> $GITHUB_OUTPUT
193208 echo "EOF" >> $GITHUB_OUTPUT
194209 echo "has_custom_tags=true" >> $GITHUB_OUTPUT
210+ echo "Parsed tags successfully"
195211 else
196212 echo "has_custom_tags=false" >> $GITHUB_OUTPUT
213+ echo "No custom tags provided (event: ${{ github.event_name }}, has tag input: $([ -n '${{ github.event.inputs.tag }}' ] && echo 'yes' || echo 'no'))"
197214 fi
198215
199216 health-checker :
@@ -226,13 +243,23 @@ jobs:
226243 username : ${{ github.repository_owner }}
227244 password : ${{ secrets.AETHERLAY_GITHUB_TOKEN }}
228245
246+ - name : Debug - Show tags for health-checker
247+ run : |
248+ echo "Tags from parse_tags job:"
249+ echo "${{ needs.parse_tags.outputs.tags }}"
250+ echo ""
251+ echo "Has custom tags: ${{ needs.parse_tags.outputs.has_custom_tags }}"
252+ echo "Event name: ${{ github.event_name }}"
253+ echo "Ref name: ${{ github.ref_name }}"
254+ echo "Default branch: ${{ github.event.repository.default_branch }}"
255+
229256 - name : Docker meta for health-checker
230257 id : meta_hc
231258 uses : docker/metadata-action@v5
232259 with :
233260 images : ghcr.io/project-aethermesh/aetherlay/aetherlay-hc
234261 tags : |
235- type=raw,value=latest,enable=${{ github.ref_name == github.event.repository.default_branch && github.event_name != 'pull_request' }}
262+ type=raw,value=latest,enable=${{ github.ref_name == github.event.repository.default_branch && github.event_name != 'pull_request' && needs.parse_tags.outputs.has_custom_tags != 'true' }}
236263 type=sha,format=short,enable=${{ github.ref_name == github.event.repository.default_branch && github.event_name != 'pull_request' }}
237264 type=raw,value=pr-${{ github.event.pull_request.number }},enable=${{ github.event_name == 'pull_request' }}
238265 ${{ needs.parse_tags.outputs.tags }}
@@ -241,6 +268,11 @@ jobs:
241268 org.opencontainers.image.vendor=Project Aethermesh
242269 org.opencontainers.image.licenses=AGPL-3.0
243270
271+ - name : Debug - Show final tags for health-checker
272+ run : |
273+ echo "Final tags that will be applied:"
274+ echo "${{ steps.meta_hc.outputs.tags }}"
275+
244276 - name : Build and push health-checker image
245277 id : container_image_hc
246278 uses : docker/build-push-action@v6
@@ -281,13 +313,23 @@ jobs:
281313 username : ${{ github.repository_owner }}
282314 password : ${{ secrets.AETHERLAY_GITHUB_TOKEN }}
283315
316+ - name : Debug - Show tags for load-balancer
317+ run : |
318+ echo "Tags from parse_tags job:"
319+ echo "${{ needs.parse_tags.outputs.tags }}"
320+ echo ""
321+ echo "Has custom tags: ${{ needs.parse_tags.outputs.has_custom_tags }}"
322+ echo "Event name: ${{ github.event_name }}"
323+ echo "Ref name: ${{ github.ref_name }}"
324+ echo "Default branch: ${{ github.event.repository.default_branch }}"
325+
284326 - name : Docker meta for load-balancer
285327 id : meta_lb
286328 uses : docker/metadata-action@v5
287329 with :
288330 images : ghcr.io/project-aethermesh/aetherlay/aetherlay-lb
289331 tags : |
290- type=raw,value=latest,enable=${{ github.ref_name == github.event.repository.default_branch && github.event_name != 'pull_request' }}
332+ type=raw,value=latest,enable=${{ github.ref_name == github.event.repository.default_branch && github.event_name != 'pull_request' && needs.parse_tags.outputs.has_custom_tags != 'true' }}
291333 type=sha,format=short,enable=${{ github.ref_name == github.event.repository.default_branch && github.event_name != 'pull_request' }}
292334 type=raw,value=pr-${{ github.event.pull_request.number }},enable=${{ github.event_name == 'pull_request' }}
293335 ${{ needs.parse_tags.outputs.tags }}
@@ -296,6 +338,11 @@ jobs:
296338 org.opencontainers.image.vendor=Project Aethermesh
297339 org.opencontainers.image.licenses=AGPL-3.0
298340
341+ - name : Debug - Show final tags for load-balancer
342+ run : |
343+ echo "Final tags that will be applied:"
344+ echo "${{ steps.meta_lb.outputs.tags }}"
345+
299346 - name : Build and push load-balancer image
300347 id : container_image_lb
301348 uses : docker/build-push-action@v6
0 commit comments