fix(push-nix-cache): avoid nix S3 backend aws-chunked issue via file cache + aws s3 sync

This commit is contained in:
Christopher Mühl 2026-02-18 21:10:17 +01:00
parent c0ba8096ba
commit 52c37b1fd5
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -26,7 +26,8 @@ runs:
run: | run: |
echo "${NIX_SIGNING_KEY}" > /tmp/nix-key echo "${NIX_SIGNING_KEY}" > /tmp/nix-key
nix store sign -k /tmp/nix-key --recursive "${{ inputs.store-path }}" 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 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 }}"