Skip to main content

Create Deployment

One can deploy CPU via deweb-services/create_cpu_action with following parameters:

ParameterDefault ValueRequiredComment
access-keyaccess-keytrue
secret-keysecret-keytrue
ssh-keyssh-keytruemust start with ssh-ed25519 or ssh-rsa or ssh-dss or ssh-ecdsa and contain a valid public ssh-key
ssh-key-namenametruecan contain only Latin letters and Arabic numerals
regionUnited Statesfalsesee the list below for possible options
imageUbuntu-v22.04falsesee the list below for possible options
cpu1falseonly integer numbers
ram1024falseonly integer numbers (size in MiB)
disk-size40960falseonly integer numbers (size in MiB)
assign-public-ipv4falsefalseboolean
assign-public-ipv6falsefalseboolean
assign-ygg-ipfalsefalseboolean
vpc-idfalseexisting vpc-id
host-nametruecan contain only Latin letters and Arabic numerals

Possible image options:

  • Ubuntu-v18.04
  • Ubuntu-v20.04
  • Ubuntu-v22.04
  • Debian-v12

Possible region options:

  • Brazil
  • Canada
  • Kazakhstan
  • Lithuania
  • Netherlands
  • Singapore
  • Turkey
  • United States

The outputs are:

  • uuid
  • ip
  • ipv6
  • ygg
  • host

So one can get their values in next step like ${{ steps.create-cpu-step-id.outputs.host }}

Example:

name: Main

on: [ push ]

jobs:
create_cpu_job:
runs-on: ubuntu-latest
name: A job to deploy cpu
steps:
- name: Create cpu action step
id: create-cpu
uses: deweb-services/[email protected]
with:
access-key: 'jvh3ai...'
secret-key: 'jz56tr...'
ssh-key: 'ssh-ed25519 AAAAC3NzaC...'
ssh-key-name: 'keyname'
region: 'United States'
ram: 4096
cpu: 4
disk-type: hdd
assign-public-ipv4: true
host-name: 'mybestdeployment'

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

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.