mirror of
https://github.com/fosrl/newt.git
synced 2026-02-08 05:56:40 +00:00
Insert version CICD
This commit is contained in:
12
.github/workflows/cicd.yml
vendored
12
.github/workflows/cicd.yml
vendored
@@ -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/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user