Skip to content

Commit

Permalink
add update-version.sh to codebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekchaudhry committed Nov 12, 2022
1 parent e8d24d7 commit 6e8c9a5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions buildspecs/merge-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ phases:

# Build agent tar and rpm
- GO111MODULE=auto

# Update version.go file
- ./scripts/update-version.sh
- git add agent/version/version.go

# Dummy git config to create a commit
- git config user.email "[email protected]"
- git config user.name "Your Name"

# Commit required to build agent with updated files
- git commit -m "update version"

- make dockerfree-agent-image
- make generic-rpm-integrated
- ls
Expand Down
12 changes: 12 additions & 0 deletions buildspecs/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ phases:

# Building agent tars
- GO111MODULE=auto

# Update version.go file
- ./scripts/update-version.sh | tee -a $BUILD_LOG
- git add agent/version/version.go | tee -a $BUILD_LOG

# Dummy git config to create a commit
- git config user.email "[email protected]" | tee -a $BUILD_LOG
- git config user.name "Your Name" | tee -a $BUILD_LOG

# Commit required to build agent with updated files
- git commit -m "update version" | tee -a $BUILD_LOG

- make dockerfree-agent-image 2>&1 | tee -a $BUILD_LOG
- make generic-rpm-integrated 2>&1 | tee -a $BUILD_LOG
- ls
Expand Down

0 comments on commit 6e8c9a5

Please sign in to comment.