Create GPU
In order to deploy a GPU VM use deweb-services/create_gpu_action
with following parameters:
Parameter | Default Value | Required |
---|---|---|
access-key | access-key | true |
secret-key | secret-key | true |
ssh-key | ssh-key | true |
name | name | false |
region | Europe | false |
image | ubuntu:latest | false |
count | 1 | false |
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.