feat(ci): add step to update version in main.go during CI/CD pipeline

This commit is contained in:
Marc Schäfer
2025-10-21 01:20:08 +02:00
parent 2b7e93ec92
commit 06b1e84f99

View File

@@ -38,6 +38,16 @@ jobs:
with:
go-version: 1.25
- name: Update version in main.go
run: |
TAG=${{ env.TAG }}
if [ -f main.go ]; then
sed -i 's/version_replaceme/'"$TAG"'/' main.go
echo "Updated main.go with version $TAG"
else
echo "main.go not found"
fi
- name: Build and push Docker images
run: |
TAG=${{ env.TAG }}