From 1ed3f1e37e42c586c522933d38fec9d6e43b4f7e Mon Sep 17 00:00:00 2001 From: Nick Cabatoff Date: Mon, 18 May 2020 16:56:28 -0400 Subject: [PATCH] Update to newer goreleaser file format and pin version. --- .circleci/config.yml | 2 +- .goreleaser.yml | 40 ++++++++++++++++++++-------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index da6ae12..3ae8c81 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,7 +31,7 @@ jobs: - checkout - run: sudo apt-get -qq update - run: sudo apt-get install -y rpm - - run: curl -sL https://git.io/goreleaser | bash + - run: curl -sL https://git.io/goreleaser | VERSION=v0.134.0 bash release_image: environment: diff --git a/.goreleaser.yml b/.goreleaser.yml index d543e20..00c3dc2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,26 +11,26 @@ builds: - arm64 - ppc64 - ppc64le -archive: - name_template: "process-exporter-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" - wrap_in_directory: true -nfpm: - homepage: https://github.com/ncabatoff/process-exporter - maintainer: nick.cabatoff+procexp@gmail.com - description: Prometheus exporter to report on processes running - license: MIT - formats: - - deb - - rpm - bindir: /usr/bin - files: - "packaging/process-exporter.service": "/lib/systemd/system/process-exporter.service" - config_files: - "packaging/conf/all.yaml": "/etc/process-exporter/all.yaml" - scripts: - postinstall: "packaging/scripts/postinstall.sh" - postremove: "packaging/scripts/postremove.sh" - preremove: "packaging/scripts/preremove.sh" +archives: + - name_template: "process-exporter-{{ .Version }}.{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" + wrap_in_directory: true +nfpms: + - homepage: https://github.com/ncabatoff/process-exporter + maintainer: nick.cabatoff+procexp@gmail.com + description: Prometheus exporter to report on processes running + license: MIT + formats: + - deb + - rpm + bindir: /usr/bin + files: + "packaging/process-exporter.service": "/lib/systemd/system/process-exporter.service" + config_files: + "packaging/conf/all.yaml": "/etc/process-exporter/all.yaml" + scripts: + postinstall: "packaging/scripts/postinstall.sh" + postremove: "packaging/scripts/postremove.sh" + preremove: "packaging/scripts/preremove.sh" release: github: owner: ncabatoff