Private
Public Access
1
0

Update Go and dependencies
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-12 22:14:15 -08:00
parent 47b96cd598
commit 6b84bbe5e1
6 changed files with 60 additions and 21 deletions

View File

@@ -2,7 +2,16 @@
set -euo pipefail
go install github.com/goreleaser/goreleaser@v1.22.1
go install github.com/goreleaser/goreleaser@v1.23.0
if [ ! -z "${harbor_username:-}"]; then
DOCKER_FILE=~/.docker/config.json
if [ ! -e $DOCKER_FILE ]; then
mkdir -p ~/.docker/
export harbor_auth=`cat /dev/null | jq -s -r '[ env.harbor_username, env.harbor_password ] | join(":") | @base64'`
echo '{"auths":{"harbor.ntppool.org":{"auth":""}}}' | jq '.auths["harbor.ntppool.org"].auth=env.harbor_auth' > $DOCKER_FILE
fi
fi
DRONE_TAG=${DRONE_TAG-""}