From 39bfe5b230bead2ca432a07aecf15c770a6ca3cd Mon Sep 17 00:00:00 2001 From: Owen Schwartz Date: Wed, 29 Jan 2025 22:31:14 -0500 Subject: [PATCH] Insert version CICD --- .github/workflows/cicd.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index dec756a..2d339b8 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -32,6 +32,16 @@ jobs: with: 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 run: | TAG=${{ env.TAG }} @@ -46,5 +56,3 @@ jobs: with: name: binaries path: bin/ - -