mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 20:30:37 -05:00
ci: add GitHub Actions cron (#16)
* ci: add dependabot * ci: revamp logic Merge username and password as a single auth token. It doesn't make sense to split out the user and password since they are so tied together. Might as well treat the whole think as a secret blob. Remove Travis-CI. Travis is dead for OSS. Add GitHub Actions cron. Remove cachix as it's pushing too much stuff. Merge all of the CI logic into a single ci.sh script.
This commit is contained in:
@@ -5,9 +5,8 @@
|
||||
# Usage: ./docker-login <username> <password> [registry]
|
||||
set -euo pipefail
|
||||
|
||||
username=$1
|
||||
password=$2
|
||||
registry=${3:-docker.io}
|
||||
auth=$1
|
||||
registry=${2:-docker.io}
|
||||
|
||||
# Encode some funky docker heuristic
|
||||
if [[ $registry = *docker.io ]]; then
|
||||
@@ -21,7 +20,7 @@ cat <<DOCKER_CONF > ~/.docker/config.json
|
||||
{
|
||||
"auths": {
|
||||
"$registry": {
|
||||
"auth": "$(printf "%s:%s" "$username" "$password" | base64)"
|
||||
"auth": "$(echo "$auth" | base64)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user