Skip to content

Add README and GitHub Actions #1

Add README and GitHub Actions

Add README and GitHub Actions #1

Workflow file for this run

# Ref: https://docs.docker.com/build/ci/github-actions/
name: Build Docker Images
on:
push:
branches:
- "master"
paths:
- .github/workflows/build.yaml
- Dockerfile
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/pytorch-conda:23.12-py3