fix: create temp directory for skopeo in CI
Some checks failed
Build and Push OCI Image / build (push) Failing after 1m3s
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:
parent
2210c5fcf7
commit
c32ba4d80e
1 changed files with 5 additions and 0 deletions
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue