chore(deps): update dependency nvidia-cuda-driver to v560 - autoclosed #176
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI test build | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: {} | |
jobs: | |
cuda: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
driver_kind: ["cuda"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Load CUDA config | |
id: load_config | |
run: | | |
cuda_version=$(yq e '.cuda.version' driver_config.yml) | |
echo "CUDA_VERSION=$cuda_version" | |
echo "cuda_version=$cuda_version" >> $GITHUB_OUTPUT | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx- | |
- name: Generate timestamp | |
id: timestamp | |
run: echo "timestamp=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT | |
- uses: paulhatch/[email protected] | |
with: | |
bump_each_commit: false | |
version_format: "${{ steps.load_config.outputs.cuda_version }}-${{ steps.timestamp.outputs.timestamp }}" | |
id: semver | |
- name: 'Check version' | |
run: | | |
echo "version is ${{ steps.semver.outputs.version }}" | |
echo "version is ${{ steps.semver.outputs.version_tag }}" | |
- name: 'Build and Push' | |
run: | | |
set -x | |
echo "tag is: " | |
echo ${{ steps.semver.outputs.version }} | |
docker buildx build --build-arg DRIVER_KIND=${{ matrix.driver_kind }} --build-arg DRIVER_VERSION=${{ steps.load_config.outputs.cuda_version }} --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache-new --output=type=docker -t ${{ secrets.AZURE_REGISTRY_SERVER }}/public/aks/aks-gpu-cuda:${{ steps.semver.outputs.version }} . | |
docker images | |
- name: Move cache | |
run: | | |
rm -r /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | |
grid: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
driver_kind: ["grid"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Load GRID config | |
id: load_config | |
run: | | |
grid_version=$(yq e '.grid.version' driver_config.yml) | |
grid_url=$(yq e '.grid.url' driver_config.yml) | |
echo "GRID_VERSION=$grid_version" | |
echo "GRID_URL=$grid_url" | |
echo "grid_version=$grid_version" >> $GITHUB_OUTPUT | |
echo "grid_url=$grid_url" >> $GITHUB_OUTPUT | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Cache Docker layers | |
uses: actions/cache@v4 | |
with: | |
path: /tmp/.buildx-cache | |
key: ${{ runner.os }}-buildx-${{ matrix.driver_kind}}-${{ steps.load_config.outputs.grid_version }}-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-buildx-${{ matrix.driver_kind}}-${{ steps.load_config.outputs.grid_version }} | |
- name: Generate timestamp | |
id: timestamp | |
run: echo "timestamp=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT | |
- uses: paulhatch/[email protected] | |
with: | |
bump_each_commit: false | |
version_format: "${{ steps.load_config.outputs.grid_version }}-${{ steps.timestamp.outputs.timestamp }}" | |
id: semver | |
- name: 'Check version' | |
run: | | |
echo "version is ${{ steps.semver.outputs.version }}" | |
echo "version is ${{ steps.semver.outputs.version_tag }}" | |
- name: 'Build and Push' | |
run: | | |
set -x | |
echo "tag is: " | |
echo ${{ steps.semver.outputs.version }} | |
docker buildx build --build-arg DRIVER_URL=${{ steps.load_config.outputs.grid_url }} --build-arg DRIVER_KIND=${{ matrix.driver_kind }} --build-arg DRIVER_VERSION=${{ steps.load_config.outputs.grid_version }} --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache-new --output=type=docker -t ${{ secrets.AZURE_REGISTRY_SERVER }}/public/aks/aks-gpu-grid:${{ steps.semver.outputs.version }} . | |
docker images | |
- name: Move cache | |
run: | | |
rm -r /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache |