Skip to content

Commit

Permalink
parameterize image
Browse files Browse the repository at this point in the history
  • Loading branch information
mhwasil committed Apr 22, 2024
1 parent 9eeb69e commit a0da1db
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/manual-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ name: Manual workflow
on:
workflow_dispatch:
inputs:
cuda:
description: 'Cuda version to build'
image:
description: 'Image to build e.g. gpu-notebook'
required: true
default: 'gpu-notebook'
tag:
description: 'Tag to build e.g. cuda11.8.0-ubuntu22.04'
required: true
default: 'cuda11.8.0-ubuntu22.04'

Expand Down Expand Up @@ -53,8 +57,9 @@ jobs:
id: build_and_deploy_image
run: |
OWNER=${{ needs.setup.outputs.owner }}
CUDA_VERSION=${{ github.event.inputs.cuda }}
bash build_and_publish.sh --registry ghcr.io --publish "all" --cuda-version $CUDA_VERSION
IMAGE=${{ github.event.inputs.image }}
TAG=${{ github.event.inputs.tag }}
bash build_and_publish.sh --registry ghcr.io --publish "all" --cuda-version $TAG --image $IMAGE
- name: Docker image list
run: docker images
Expand Down

0 comments on commit a0da1db

Please sign in to comment.