Skip to content

Commit

Permalink
inject version
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmeister committed Nov 14, 2021
1 parent 76034c8 commit 4139cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Inject version
run: sed -i "s/<version>/$(echo ${{ github.ref }} | sed s#refs/tags/v##)/" cmd/git-ops-update/main.go
- name: Run build
run: make build
- uses: docker/login-action@v1
Expand Down
1 change: 1 addition & 0 deletions cmd/git-ops-update/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var (
directory string
dryRun bool
rootCmd = &cobra.Command{
Version: "<version>",
Use: "git-ops-update",
Short: "An updater for docker images and helm charts in your infrastructure-as-code repository",
SilenceUsage: true,
Expand Down

0 comments on commit 4139cf2

Please sign in to comment.