mirror of
https://github.com/dependabot/dependabot-core.git
synced 2025-06-15 14:21:44 +00:00
Makes it possible to use Dependabot CLI on distros where the `bash` executable is not in `/bin`, such as NixOS.
19 lines
490 B
Bash
Executable File
19 lines
490 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
source script/_common
|
|
|
|
if [ -z "$GPR_TOKEN" ]; then
|
|
echo "Please set a value for GPR_TOKEN so you can download the dependency containers"
|
|
echo
|
|
echo "If required, generate a Personal Access Token with 'packages:read' permissions:"
|
|
echo " https://github.com/settings/tokens/new"
|
|
echo
|
|
exit 1
|
|
fi
|
|
|
|
# Log into GPR to pull downstream images
|
|
echo "$GPR_TOKEN" | docker login docker.pkg.github.com -u x --password-stdin
|
|
docker_build
|