Skip to content

Commit

Permalink
Dynamic version variable (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren authored Dec 21, 2023
1 parent 21664f8 commit 53e1256
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GIT_HUB_TOKEN }}
- name: Replace version variable
run: sed -i 's/{{RELEASE_TAG}}/${{github.event.release.tag_name}}/g' files/config.go # Replace release variable with the name of this release
- name: Build and push
uses: docker/build-push-action@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release GO binaries

on:
release:
types: [edited,created,published]
types: [edited,published]

jobs:
releases-matrix:
Expand Down Expand Up @@ -30,3 +30,4 @@ jobs:
retry: 10
overwrite: true
release_name: ${{ github.ref_name }}
pre_command: sed -i 's/{{RELEASE_TAG}}/${{github.event.release.tag_name}}/g' files/config.go # Replace release variable with the name of this release

0 comments on commit 53e1256

Please sign in to comment.