mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 12:30:36 -05:00
13 lines
428 B
Bash
Executable File
13 lines
428 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
: "${CI_REGISTRY_IMAGE:=registry.gitlab.com/zimbatm/docker-nixpkgs}"
|
|
: "${REGISTRY_URL:=$CI_REGISTRY_IMAGE/undefined}"
|
|
|
|
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:latest"
|
|
done
|