fix: make Attic push non-fatal in docker-build-nix

This commit is contained in:
Christopher Mühl 2026-03-04 14:22:20 +01:00
parent e702f56d87
commit 6534bcfe08
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -64,6 +64,7 @@ runs:
- name: Push build artifacts to Attic cache
shell: bash
if: env.ATTIC_TOKEN != ''
continue-on-error: true
env:
ATTIC_TOKEN: ${{ env.ATTIC_TOKEN }}
run: |
@ -75,8 +76,8 @@ runs:
token = "${ATTIC_TOKEN}"
EOF
# Push entire closure to cache
attic push "${{ inputs.cache-name }}" ./result
# Push entire closure to cache (don't fail if this fails)
attic push "${{ inputs.cache-name }}" ./result || echo "Warning: Failed to push to Attic cache, continuing anyway"
- name: Load image into Docker
shell: bash