Skip to main content

Create GPU

In order to deploy a GPU VM use deweb-services/create_gpu_action with following parameters:

ParameterDefault ValueRequired
access-keyaccess-keytrue
secret-keysecret-keytrue
ssh-keyssh-keytrue
namenamefalse
regionEuropefalse
imageubuntu:latestfalse
count1false

The outputs are:

  • uuid
  • host
  • port

Retrieve their values in next step using ${{ steps.create-gpu-step-id.outputs.host }}

Example:

name: Main

on: [ push ]

jobs:
create_gpu_job:
runs-on: ubuntu-latest
name: A job to deploy gpu
steps:
- name: Create gpu action step
id: create-gpu
uses: deweb-services/[email protected]
with:
access-key: 'jvh3ai...'
secret-key: 'jz56tr...'
ssh-key: 'ssh-ed25519 AAAAC3NzaC...'
name: 'RTX_4090'
region: 'Europe'

- name: Get the output uuid
run: echo "The uuid was ${{ steps.create-gpu.outputs.uuid }}, the ip is ${{ steps.create-gpu.outputs.host }}, the port is ${{ steps.create-gpu.outputs.port }}"

The "access-key" parameter refers to a Access Keys credential pair. Access keys are accessible in the Access keys menu item on NodeShift. You can read more about creating and using them in the Access Keys section.