Skip to content

Commit

Permalink
Slim down E2E artifacts (rancher#6097)
Browse files Browse the repository at this point in the history
* Don't use rke2-runtime.tar in e2e

Signed-off-by: Derek Nola <[email protected]>

* Don't upload rke2-runtime.tar

Signed-off-by: Derek Nola <[email protected]>

---------

Signed-off-by: Derek Nola <[email protected]>
  • Loading branch information
dereknola authored and Sarthak Kumar committed Aug 19, 2024
1 parent 78dfd6b commit 37fc438
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Install OS Packages
run: sudo apt-get install -y libarchive-tools
- name: Build RKE2 Binary and Runtime Image
# Can only upload from a single path, so we need to copy the binary to the image directory
# Additionally, we have a rke2-runtime.tar and a rke2-images.linux-amd64.tar.zst which are the same thing
# just compressed. We remove the rke2-runtime.tar as its not used by the install script.
- name: Build RKE2 Binary and Compressed Runtime Image
run: |
GOCOVER=true make package-bundle
make package-image-runtime
cp ./bin/rke2 ./build/images/rke2
cp ./dist/artifacts/rke2.linux-amd64.tar.gz ./build/images/rke2.linux-amd64.tar.gz
# Can only upload from a single path, so we need to copy the binary to the image directory
rm ./build/images/rke2-runtime.tar
- name: Upload RKE2 Binary and Runtime Image
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ func scpRKE2Artifacts(nodeNames []string) error {
}
images := []string{
"build/images/rke2-images.linux-amd64.tar.zst",
"build/images/rke2-runtime.tar",
}

// vagrant scp doesn't allow coping multiple files at once
Expand Down

0 comments on commit 37fc438

Please sign in to comment.