Skip to content

Commit

Permalink
Replaced Docker Import with Skopeo copy
Browse files Browse the repository at this point in the history
Docker `import` command works for archives but has an expectation of
flat filesystem tar. A rock when imported with `docker import` corrupts
the image but doesn't throw any errors.
  • Loading branch information
UtkarshBhatthere committed Jan 17, 2025
1 parent abaedcb commit b97bf3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish_edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
for tag in $TAGS; do
echo "$tag"
docker image ls -a
docker import ${{ steps.rockcraft.outputs.rock }} $tag
rockcraft.skopeo --insecure-policy copy oci-archive:${{ steps.rockcraft.outputs.rock }} docker-daemon:$tag
done
docker image ls -a
sleep 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_hotfix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
for tag in $TAGS; do
echo "$tag"
docker image ls -a
docker import ${{ steps.rockcraft.outputs.rock }} $tag
rockcraft.skopeo --insecure-policy copy oci-archive:${{ steps.rockcraft.outputs.rock }} docker-daemon:$tag
done
docker image ls -a
sleep 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
for tag in $TAGS; do
echo "$tag"
docker image ls -a
docker import ${{ steps.rockcraft.outputs.rock }} $tag
rockcraft.skopeo --insecure-policy copy oci-archive:${{ steps.rockcraft.outputs.rock }} docker-daemon:$tag
done
docker image ls -a
sleep 10
Expand Down

0 comments on commit b97bf3d

Please sign in to comment.