fix: change kernel build for nvidia #48
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: Build Base image | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Каждую неделю | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
driver: docker-container | |
install: true | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push base image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest | |
platforms: linux/amd64 | |
build-args: BUILD_TYPE=default | |
- name: Build and push NVIDIA base image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: DockerfileNvidia | |
push: true | |
tags: | | |
ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest-nv | |
platforms: linux/amd64 | |
build-args: BUILD_TYPE=nvidia |