use image tags to identify channels
this works better with registries like hub.docker.com that don't allow nested images
This commit is contained in:
parent
b44f7f85f3
commit
5d9a795ac3
3 changed files with 7 additions and 5 deletions
6
push-all
6
push-all
|
@ -1,12 +1,12 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
: "${CI_REGISTRY_IMAGE:=registry.gitlab.com/zimbatm/docker-nixpkgs}"
|
||||
: "${REGISTRY_URL:=$CI_REGISTRY_IMAGE/undefined}"
|
||||
: "${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:latest"
|
||||
skopeo copy "docker-archive://$file" "docker://$REGISTRY_URL/$attr:$IMAGE_TAG"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue