forked from github-mirror/docker-nixpkgs
ci: switch images from Docker Hub to GitHub Packages
Docker changed their mind and are asking us to pay to keep the org on Docker Hub.
This commit is contained in:
9
ci.sh
9
ci.sh
@@ -5,9 +5,9 @@
|
||||
set -euo pipefail
|
||||
|
||||
channel=${NIXPKGS_CHANNEL:-nixos-unstable}
|
||||
registry=${CI_REGISTRY:-docker.io}
|
||||
registry=${CI_REGISTRY:-ghcr.io}
|
||||
registry_auth=${CI_REGISTRY_AUTH:-}
|
||||
image_prefix=${CI_PROJECT_PATH:-nixpkgs}
|
||||
image_prefix=${CI_PROJECT_PATH:-nix-community/docker-nixpkgs}
|
||||
|
||||
if [[ $channel == nixos-unstable ]]; then
|
||||
image_tag=latest
|
||||
@@ -43,8 +43,3 @@ fi
|
||||
|
||||
banner "docker push"
|
||||
./push-all "$registry" "$image_prefix" "$image_tag"
|
||||
|
||||
if [[ -n "${registry_auth}" && $registry = *docker.io ]]; then
|
||||
banner "docker metadata update"
|
||||
./dockerhub-metadata "$registry_auth" "$image_prefix"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user