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:
zimbatm
2023-03-16 12:16:29 +01:00
parent c5d1be8214
commit 8aababdd97
5 changed files with 24 additions and 54 deletions

9
ci.sh
View File

@@ -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