Skip to content

Build_Subgen_Dockerfile_GPU #124

Build_Subgen_Dockerfile_GPU

Build_Subgen_Dockerfile_GPU #124

name: Build_Subgen_Dockerfile
on:
push:
branches:
- 'main'
paths-ignore:
- '**.md'
- '**.yml'
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Log in to the Github Container registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build
uses: docker/build-push-action@v5
with:
push: false
tags: mccloud/subgen:latest
- uses: kitabisa/docker-slim-action@v1
env:
DSLIM_HTTP_PROBE: false
with:
target: mccloud/subgen:latest
overwrite: true
# Push to the registry
- run: docker image push "mccloud/subgen:latest"