golang-vendor-private/entrypoint.sh
pips 07a0ac4209
All checks were successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/2 Pipeline was successful
fix(logs): align error message with var names
2025-08-23 16:09:16 +02:00

22 lines
374 B
Bash
Executable file

#!/usr/bin/env sh
if [ -z "$PLUGIN_GOPRIVATE" ]; then
echo "goprivate empty"
exit 1
fi
if [ -z "$PLUGIN_LOGIN" ]; then
echo "login empty"
exit 1
fi
if [ -z "$PLUGIN_PASSWORD" ]; then
echo "password empty"
exit 1
fi
export GOPRIVATE="$PLUGIN_GOPRIVATE"
echo "machine $PLUGIN_GOPRIVATE login $PLUGIN_LOGIN password $PLUGIN_PASSWORD" > ~/.netrc
go mod vendor