Skip to content

Commit

Permalink
address PR comments: prettify consistently, require all inputs, impro…
Browse files Browse the repository at this point in the history
…ve README, add missing types for vultr-node, rebuild dist

accept operating system input by name (os_type) rather than Vultr ID
  • Loading branch information
freemvmt committed May 8, 2024
1 parent 2ae551f commit f567041
Show file tree
Hide file tree
Showing 11 changed files with 1,169 additions and 743 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# vultr-action

This script creates and destroys pizzas on Vultr - that is, an instance and associated DNS records.

It uses a dedicated node client called [vultr-node](https://github.com/vultr/vultr-node) to interact with the Vultr API.
This Github Action creates and destroys instances, and associated DNS records, on the Vultr cloud service.

## v2

Teardown should now work on DNS records!
The latest major version of this action uses a dedicated node client called [vultr-node](https://github.com/vultr/vultr-node) to interact with the Vultr API.

It includes a fix to the teardown of DNS records, which was previously unreliable.

There are some breaking changes in terms of the inputs required (e.g. improved naming consistency, operating system submitted by name rather than ID).

### operating systems

A constant defining the operating systems currently supported by this action can be found in `src/common.ts`. You can get a full list of Vultr OS options from the CLI with the command `vultr-cli os list`. Please open a PR if you want to use this action to spin up an OS not included there.
12 changes: 9 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ inputs:
api_key:
required: true
domain:
required: false
os:
required: false
required: true
os_type:
required: true
plan:
required: true
pull_request_id:
required: true
region:
required: true
tag:
required: true
outputs:
ip_address:
description: "IP address"
Expand Down
Loading

0 comments on commit f567041

Please sign in to comment.