mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 14:43:51 +00:00
Merge pull request #2573 from fidencio/wip/upload-cargo-vendored-tarball
workflows,release: Upload the vendored cargo code
This commit is contained in:
commit
08e55a279a
18
.github/workflows/release.yaml
vendored
18
.github/workflows/release.yaml
vendored
@ -127,3 +127,21 @@ jobs:
|
|||||||
pushd $GITHUB_WORKSPACE
|
pushd $GITHUB_WORKSPACE
|
||||||
echo "uploading asset '${tarball}' for tag: ${tag}"
|
echo "uploading asset '${tarball}' for tag: ${tag}"
|
||||||
GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} hub release edit -m "" -a "${tarball}" "${tag}"
|
GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} hub release edit -m "" -a "${tarball}" "${tag}"
|
||||||
|
popd
|
||||||
|
|
||||||
|
upload-cargo-vendored-tarball:
|
||||||
|
needs: upload-static-tarball
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: generate-and-upload-tarball
|
||||||
|
run: |
|
||||||
|
pushd $GITHUB_WORKSPACE/src/agent
|
||||||
|
cargo vendor >> .cargo/vendor
|
||||||
|
popd
|
||||||
|
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
||||||
|
tarball="kata-containers-$tag-vendor.tar.gz"
|
||||||
|
pushd $GITHUB_WORKSPACE
|
||||||
|
tar -cvzf "${tarball}" src/agent/.cargo/vendor src/agent/vendor
|
||||||
|
GITHUB_TOKEN=${{ secrets.GIT_UPLOAD_TOKEN }} hub release edit -m "" -a "${tarball}" "${tag}"
|
||||||
|
popd
|
||||||
|
Loading…
Reference in New Issue
Block a user