Add version with SHA for GRID container image push

This commit is contained in:
Ganeshkumar Ashokavardhanan 2024-08-07 15:59:24 -07:00
Родитель d5c367f3f2
Коммит f09e1082e7
1 изменённых файлов: 1 добавлений и 1 удалений

2
.github/workflows/main.yaml поставляемый
Просмотреть файл

@ -111,7 +111,7 @@ jobs:
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:${{ steps.semver.outputs.version }} .
docker images
az acr login -n ${{ secrets.AZURE_REGISTRY_SERVER }}
docker push ${{ secrets.AZURE_REGISTRY_SERVER }}/public/aks/aks-gpu:${{ steps.load_config.outputs.grid_version }}
docker push ${{ secrets.AZURE_REGISTRY_SERVER }}/public/aks/aks-gpu:${{ steps.semver.outputs.version }}
- name: Move cache
run: |
rm -r /tmp/.buildx-cache