Skip to content

Commit

Permalink
Merge pull request #62 from karimra/update-goreleaser
Browse files Browse the repository at this point in the history
update goreleaser
  • Loading branch information
karimra authored Nov 14, 2023
2 parents f6ee0eb + ccb13e2 commit 66ed379
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
GOVER: 1.21.3
GORELEASER_VER: v1.19.2
GORELEASER_VER: v1.22.1

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ builds:
archives:
- name_template: >-
{{ .ProjectName }}_
{{- slice .Version 1 }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
name_template: "{{ .Version }}"
publishers:
- name: fury.io deb/rpm packages
ids:
Expand All @@ -36,7 +36,7 @@ nfpms:
- id: srl-prometheus-exporter-nfpms
file_name_template: >-
{{ .ProjectName }}_
{{- slice .Version 1 }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/karimra/srl-prometheus-exporter

go 1.21.1
go 1.21.3

require (
github.com/hashicorp/consul/api v1.26.1
Expand Down
8 changes: 4 additions & 4 deletions labs/clab/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

./stop.sh

version=0.2.13
version=0.2.14
username=admin
password=NokiaSrl1!
pkg="deb"
Expand All @@ -12,20 +12,20 @@ SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"

rm -rf $SCRIPTPATH/app
mkdir -p $SCRIPTPATH/app
echo $SCRIPTPATH

filename="srl-prometheus-exporter_${version}_Linux_x86_64.$pkg"

cd $SCRIPTPATH/../..

if [[ $1 == "build" ]]; then
# build pkgs
echo "building using goreleaser"
goreleaser --snapshot --clean release
cp dist/*.${pkg} labs/clab/app/
cp dist/*.${pkg} $SCRIPTPATH/app/
else
# download the app installation package
echo "downloading the app package"
curl -sSL https://github.com/karimra/srl-prometheus-exporter/releases/download/v${version}/${filename} -o app/${filename}
curl -sSL https://github.com/karimra/srl-prometheus-exporter/releases/download/v${version}/${filename} -o $SCRIPTPATH/app/${filename}
fi

cd $SCRIPTPATH
Expand Down

0 comments on commit 66ed379

Please sign in to comment.