fix: create temp directory for skopeo in CI
Some checks failed
Build and Push OCI Image / build (push) Failing after 1m3s

skopeo needs /var/tmp or /tmp for temporary files when copying
docker-archive images. Use --tmpdir flag to explicitly use /tmp.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Christopher Mühl 2026-02-27 00:31:50 +01:00
parent 2210c5fcf7
commit c32ba4d80e
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -23,15 +23,20 @@ jobs:
- name: Push to registry
if: github.ref == 'refs/heads/main'
run: |
# Ensure temp directory exists for skopeo
mkdir -p /var/tmp /tmp
image=$(nix build --no-link --print-out-paths .#solidhaus-image)
skopeo copy \
--dest-tls-verify=false \
--tmpdir /tmp \
"docker-archive:$image" \
"docker://registry.toph.so/solidhaus:latest"
# Also tag with commit SHA
skopeo copy \
--dest-tls-verify=false \
--tmpdir /tmp \
"docker-archive:$image" \
"docker://registry.toph.so/solidhaus:${GITHUB_SHA:0:7}"