Files
Transcriptarr/.github/workflows/github-actions-builddockerfile.yml
McCloudS 869c8f9749 Update github-actions-builddockerfile.yml
Add GPU only build
2024-03-16 14:07:10 -06:00

36 lines
861 B
YAML

name: Build_Subgen_Dockerfile_GPU
on:
#push:
# branches:
# - 'main'
# paths-ignore:
# - '**.md'
# - '**.yml'
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Commit and push changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add subgen/subgen.py
git commit -m "Automated update subgen.py with version"
git push
-
name: Login to Docker Hub
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push GPU
uses: docker/build-push-action@v5
with:
push: true
tags: mccloud/subgen:latest