Create Deployment
One can deploy CPU via deweb-services/create_cpu_action
with following parameters:
Parameter | Default Value | Required | Comment |
---|---|---|---|
access-key | access-key | true | |
secret-key | secret-key | true | |
ssh-key | ssh-key | true | must start with ssh-ed25519 or ssh-rsa or ssh-dss or ssh-ecdsa and contain a valid public ssh-key |
ssh-key-name | name | true | can contain only Latin letters and Arabic numerals |
region | United States | false | see the list below for possible options |
image | Ubuntu-v22.04 | false | see the list below for possible options |
cpu | 1 | false | only integer numbers |
ram | 1024 | false | only integer numbers (size in MiB) |
disk-size | 40960 | false | only integer numbers (size in MiB) |
assign-public-ipv4 | false | false | boolean |
assign-public-ipv6 | false | false | boolean |
assign-ygg-ip | false | false | boolean |
vpc-id | false | existing vpc-id | |
host-name | true | can 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.