Skip to content

Commit 0dca370

Browse files
joamagclaude
andcommitted
chore: strip CR/LF when reading smtp_r VERSION file
Builds on Windows-edited VERSION files were producing tags like "1.0.0\r-legacy" that buildx rejected. Normalise the VERSION file to LF and harden the workflow with `tr -d '\r\n'`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9563cf5 commit 0dca370

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dockerx_smtp_r.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
password: ${{ secrets.DOCKERHUB_TOKEN }}
3434
- name: Read image version
3535
id: version
36-
run: echo "version=$(cat ${{ matrix.config.context }}/VERSION)" >> $GITHUB_OUTPUT
36+
run: echo "version=$(tr -d '\r\n' < ${{ matrix.config.context }}/VERSION)" >> $GITHUB_OUTPUT
3737
- name: Set tag names based on branch
3838
id: set_tag
3939
run: |

smtp_r/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.0

0 commit comments

Comments
 (0)