We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b961146 commit b06c791Copy full SHA for b06c791
.github/workflows/docker-publish.yml
@@ -110,9 +110,14 @@ jobs:
110
111
- name: Export wheel from image
112
run: |
113
- docker create --name temp-container ${{ steps.build-and-push.outputs.imageid }}
114
- docker cp temp-container:/out ./out
115
- docker rm temp-container
+ CONTAINER_TAG=${{ steps.meta.outputs.tags }} # Use the same tag here
+ CONTAINER_ID=$(docker create $CONTAINER_TAG)
+ # Copy wheel files from the container to the local machine
116
+ docker cp "$CONTAINER_ID:/out" ./out
117
+ # Remove the container
118
+ docker rm "$CONTAINER_ID"
119
+ # Verify wheel file has been copied
120
+ ls ./out
121
122
- name: Upload .whl to GitHub Release
123
if: startsWith(github.ref, 'refs/tags/')
0 commit comments