diff options
author | Rok Garbas <rok@garbas.si> | 2022-02-18 00:32:38 +0100 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2022-02-18 00:32:38 +0100 |
commit | f0de5fb8e733e45f1d96fdf842eab7cdfc598c60 (patch) | |
tree | d80bc9c8d93a4d1aee74644938d8af7b64d7a5a9 /maintainers/push-docker.sh | |
parent | bf435664d747e2a69476697011ec9ec1e6dabc8b (diff) |
remove the manifest before creating them
Diffstat (limited to 'maintainers/push-docker.sh')
-rwxr-xr-x | maintainers/push-docker.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/maintainers/push-docker.sh b/maintainers/push-docker.sh index f9c5a6b18..2aa953a78 100755 --- a/maintainers/push-docker.sh +++ b/maintainers/push-docker.sh @@ -2,7 +2,7 @@ # TODO: parse from .version MAINTENANCE_VERSION="2.6" -VERSION="$MAINTENANCE_VERSION.0" +VERSION="$MAINTENANCE_VERSION.1" # Should be override `latest` tag, default true PUSH_AS_LATEST=1 @@ -55,9 +55,11 @@ do done echo "=> Creating $VERSION multi platform docker manifest for the following platforms: $PLATFORMS ..." +docker manifest rm nixos/nix:$VERSION $DOCKER_MANIFEST docker manifest create nixos/nix:$VERSION $DOCKER_MANIFEST if [ $PUSH_AS_LATEST -eq 1 ]; then echo "=> Creating latest multi platform docker manifest for the following platforms: $PLATFORMS ..." + docker manifest rm nixos/nix:latest $DOCKER_MANIFEST_LATEST docker manifest create nixos/nix:latest $DOCKER_MANIFEST_LATEST fi |