prometheus-paperless-exporter/contrib/build-all
Michael Hanselmann f2cc188833
Some checks failed
Run tests / test (push) Has been cancelled
Release / release (push) Has been cancelled
Initial commit
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-07-03 00:16:08 +02:00

16 lines
449 B
Bash
Executable file

#!/bin/bash
set -e -u -o pipefail
package=github.com/hansmi/prometheus-paperless-exporter
docker_gid=$(getent group docker | cut -d: -f3)
docker run --rm \
--user "$(id -u):$(id -g)" --group-add="$docker_gid" \
--env HOME=/tmp \
-v "${PWD}:/go/src/${package}" \
-v /var/run/docker.sock:/var/run/docker.sock \
-w "/go/src/${package}" \
goreleaser/goreleaser:latest release --snapshot --clean --skip-publish
# vim: set sw=2 sts=2 et :