channelsDir -> channelName

This commit is contained in:
Rok Garbas 2020-03-10 12:51:19 +01:00
parent a8671842d9
commit 0893b43140
No known key found for this signature in database
GPG key ID: A0E01EF44C27BF00

View file

@ -225,8 +225,8 @@ system("git push origin $rev:refs/heads/$channelName >&2") == 0 or die;
system("git push channels $rev:refs/heads/$channelName >&2") == 0 or die;
# Update channel on channels.nixos.org
$bucketChannels->add_key($channelsDir, $target, { "x-amz-website-redirect-location" => $target });
$bucketChannels->add_key("$channelsDir/nixexprs.tar.xz", $target, { "x-amz-website-redirect-location" => "$target/nixexprs.tar.xz" });
$bucketChannels->add_key($channelName, $target, { "x-amz-website-redirect-location" => $target });
$bucketChannels->add_key("$channelName/nixexprs.tar.xz", $target, { "x-amz-website-redirect-location" => "$target/nixexprs.tar.xz" });
# for nixos channels also create redirects for latest images
if ($channelName =~ /nixos/) {