docker-nixpkgs/push-all
zimbatm 5d9a795ac3
use image tags to identify channels
this works better with registries like hub.docker.com that don't allow
nested images
2019-01-19 18:25:40 +01:00

12 lines
367 B
Bash
Executable file

#!/bin/sh -eu
: "${REGISTRY_URL:=nixpkgs}"
: "${IMAGE_TAG:=latest}"
releases_json=$(nix-instantiate ./release.nix --strict --eval --json)
for attr in $(echo "$releases_json" | jq -r "keys[]") ; do
file=$(echo "$releases_json" | jq -r ".\"$attr\"")
echo "--- $attr -> $file"
skopeo copy "docker-archive://$file" "docker://$REGISTRY_URL/$attr:$IMAGE_TAG"
done