Skip to content

update: add python3-dev #11

update: add python3-dev

update: add python3-dev #11

name: docker-build-cuda
on:
push:
branches:
- main
paths:
- 'dockerfiles/1.13.1-cu117-py3.10.11-ubuntu22.04/Dockerfile'
workflow_dispatch:
jobs:
build:
name: Build Docker Image ${{ matrix.dockerfile }}
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile:
- 1.13.1-cu117-py3.10.11-ubuntu22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./dockerfiles/${{ matrix.dockerfile }}/Dockerfile
platforms: linux/amd64
push: true
tags: artrajz/pytorch:${{ matrix.dockerfile }}