Insert version CICD

This commit is contained in:
Owen Schwartz
2025-01-29 22:31:14 -05:00
parent a1a3dd9ba2
commit 39bfe5b230

View File

@@ -32,6 +32,16 @@ jobs:
with: with:
go-version: 1.23.1 go-version: 1.23.1
- name: Update version in main.go
run: |
TAG=${{ env.TAG }}
if [ -f main.go ]; then
sed -i 's/Newt version replaceme/Newt version '"$TAG"'/' main.go
echo "Updated main.go with version $TAG"
else
echo "main.go not found"
fi
- name: Build and push Docker images - name: Build and push Docker images
run: | run: |
TAG=${{ env.TAG }} TAG=${{ env.TAG }}
@@ -46,5 +56,3 @@ jobs:
with: with:
name: binaries name: binaries
path: bin/ path: bin/