prometheus-paperless-exporter/contrib/build-all
2024-01-06 09:51:50 +01: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 :