Skip to content

Commit

Permalink
build binaries with same go version as docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
terjesannum committed Apr 15, 2023
1 parent 1a93f59 commit 356466d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ jobs:
- name: Get version
id: get_version
run: "sed -n 's/^version: /version=/p' charts/tibber-exporter/Chart.yaml >> $GITHUB_OUTPUT"
- uses: wangyoucao577/go-release-action@v1.35
- name: Get go version
id: get_go_version
run: sed -n -E '/^FROM/ {s/^FROM golang:([0-9.]+).*/go_version=\1/p;q}' Dockerfile >> $GITHUB_OUTPUT
- uses: wangyoucao577/go-release-action@v1.37
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goversion: ${{ steps.get_go_version.outputs.go_version }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
asset_name: "tibber-exporter-${{ steps.get_version.outputs.version }}-${{ matrix.goos }}-${{ matrix.goarch }}"
Expand Down
2 changes: 1 addition & 1 deletion charts/tibber-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: tibber-exporter
version: 2.0.1
version: 2.0.2
description: Tibber prometheus exporter
type: application
keywords:
Expand Down

0 comments on commit 356466d

Please sign in to comment.