mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 12:30:36 -05:00
16 lines
445 B
Bash
Executable File
16 lines
445 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Usage: ./push-all <registry-prefix> <image-tag>
|
|
set -euo pipefail
|
|
|
|
registry_prefix=${1:-nixpkgs}
|
|
image_tag=${2:-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_prefix/$attr:$image_tag"
|
|
done
|