github_packages: create hard link instead of copying
Some bottles are quite large, and the copies can make us run out of space rather quickly. Let's try to avoid that by using hard links instead of copies.
This commit is contained in:
parent
0606b63136
commit
4c40d452df
@ -458,7 +458,7 @@ class GitHubPackages
|
|||||||
def write_tar_gz(local_file, blobs)
|
def write_tar_gz(local_file, blobs)
|
||||||
tar_gz_sha256 = Digest::SHA256.file(local_file)
|
tar_gz_sha256 = Digest::SHA256.file(local_file)
|
||||||
.hexdigest
|
.hexdigest
|
||||||
FileUtils.cp local_file, blobs/tar_gz_sha256
|
FileUtils.ln local_file, blobs/tar_gz_sha256
|
||||||
tar_gz_sha256
|
tar_gz_sha256
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user