fix release upload pattern
This commit is contained in:
parent
bf12a09cb6
commit
15d652b033
@ -14,9 +14,23 @@ jobs:
|
||||
run: |
|
||||
bash scripts/create-gpu-k8s-offline-package.sh
|
||||
|
||||
- name: Prepare release artifacts
|
||||
run: |
|
||||
mkdir -p release-artifacts
|
||||
mv gpu_k8s_offline_packages.tar.gz release-artifacts/
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: gpu_k8s_offline_packages
|
||||
path: gpu_k8s_offline_packages.tar.gz
|
||||
path: release-artifacts/gpu_k8s_offline_packages.tar.gz
|
||||
|
||||
- name: Upload to GitHub Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: daily-${{ github.run_number }}
|
||||
name: Daily Build ${{ github.run_number }}
|
||||
files: release-artifacts/gpu_k8s_offline_packages.tar.gz
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
||||
@ -28,6 +28,14 @@ APT_PACKAGES=(
|
||||
containerd "$NVIDIA_DRIVER_VERSION" nvidia-container-toolkit
|
||||
)
|
||||
|
||||
# Add NVIDIA repository for nvidia-container-toolkit
|
||||
distribution=$(. /etc/os-release; echo $ID$VERSION_ID)
|
||||
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
|
||||
sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
|
||||
curl -s -L "https://nvidia.github.io/nvidia-docker/${distribution}/nvidia-docker.list" | \
|
||||
sed 's#^deb #deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] #' | \
|
||||
sudo tee /etc/apt/sources.list.d/nvidia-docker.list
|
||||
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install --download-only -y "${APT_PACKAGES[@]}"
|
||||
cp /var/cache/apt/archives/*.deb "$WORKDIR/packages/"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user