Skip to content

use cuda 12.1

use cuda 12.1 #24

Workflow file for this run

name: pytorch
on:
push:
branches:
- 'main'
paths:
- 'pytorch/**/*'
env:
IMAGE_NAME: ${{ secrets.REGISTRY }}/ish/pytorch
jobs:
pytorch-base:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.REGISTRY }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: ./pytorch
file: ./pytorch/base.Dockerfile
push: true
tags: ${{ env.IMAGE_NAME }}:base