fix(push-nix-cache): avoid nix S3 backend aws-chunked issue via file cache + aws s3 sync
This commit is contained in:
parent
c0ba8096ba
commit
52c37b1fd5
1 changed files with 4 additions and 3 deletions
|
|
@ -26,7 +26,8 @@ runs:
|
|||
run: |
|
||||
echo "${NIX_SIGNING_KEY}" > /tmp/nix-key
|
||||
nix store sign -k /tmp/nix-key --recursive "${{ inputs.store-path }}"
|
||||
nix copy \
|
||||
--to "s3://${{ inputs.s3-bucket }}?endpoint=${{ inputs.s3-endpoint }}" \
|
||||
"${{ inputs.store-path }}"
|
||||
rm /tmp/nix-key
|
||||
nix copy --to "file:///tmp/nix-cache" "${{ inputs.store-path }}"
|
||||
aws s3 sync /tmp/nix-cache \
|
||||
"s3://${{ inputs.s3-bucket }}" \
|
||||
--endpoint-url "${{ inputs.s3-endpoint }}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue