Skip to content

Commit

Permalink
image-name => image-identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
[Farbfox] Michael Schiller committed Dec 30, 2021
1 parent f57f35f commit 10ce2b7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
server-name: "gh-actions-server"
server-type: "cx11"
server-location: "nbg1"
image-name: "ubuntu-20.04"
image-identifier: "ubuntu-20.04"
ssh-key-name: "my key name"
hcloud-token: ${{ secrets.HCLOUD_TOKEN }}
```
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
server-name: "gh-actions-server"
server-type: "cx11"
server-location: "nbg1"
image-name: "ubuntu-20.04"
image-identifier: "ubuntu-20.04"
ssh-key-name: "my key name"
hcloud-token: ${{ secrets.HCLOUD_TOKEN }}
- uses: webfactory/ssh-agent@v0.4.1
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
server-name: "server"
server-type: "cx11"
server-location: "nbg1"
image-name: "ubuntu-20.04"
image-identifier: "ubuntu-20.04"
ssh-key-name: "my key name"
hcloud-token: ${{ secrets.HCLOUD_TOKEN }}
startup-timeout: 40000
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ inputs:
server-location:
description: "The Hetzner server location (nbg1|...) you want your server to be."
required: true
image-name:
description: "The name of the Operating System image your server should be initiated with."
image-identifier:
description: "The name or ID of the Operating System image your server should be initiated with."
required: true
image-type:
description: "The type (system|snapshot|backup|app) of the Operating System image your server should be initiated with."
Expand Down
2 changes: 1 addition & 1 deletion dist/clean/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const options = {
type: core.getInput("server-type"),
},
image: {
name: core.getInput("image-name"),
name: core.getInput("image-identifier"),
type: core.getInput("image-type"),
},
sshKeyName: core.getInput("ssh-key-name"),
Expand Down
2 changes: 1 addition & 1 deletion dist/deploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = /******/ (() => {
type: core.getInput("server-type"),
},
image: {
name: core.getInput("image-name"),
name: core.getInput("image-identifier"),
type: core.getInput("image-type"),
},
sshKeyName: core.getInput("ssh-key-name"),
Expand Down
2 changes: 1 addition & 1 deletion lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const options = {
type: core.getInput("server-type"),
},
image: {
name: core.getInput("image-name"),
name: core.getInput("image-identifier"),
type: core.getInput("image-type"),
},
sshKeyName: core.getInput("ssh-key-name"),
Expand Down
8 changes: 4 additions & 4 deletions test/index_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test("if a request creates a server on Hetzner Cloud", async (t) => {
return options.server.type;
case "server-location":
return options.server.location;
case "image-name":
case "image-identifier":
return options.image.name;
case "image-type":
return options.image.type;
Expand Down Expand Up @@ -126,7 +126,7 @@ test("if a server can be deleted in cleanup ", async (t) => {
return options.server.type;
case "server-location":
return options.server.location;
case "image-name":
case "image-identifier":
return options.image.name;
case "image-type":
return options.image.type;
Expand Down Expand Up @@ -187,7 +187,7 @@ test("if a server is kept when delete-server input is set to false", async (t) =
return options.server.type;
case "server-location":
return options.server.location;
case "image-name":
case "image-identifier":
return options.image.name;
case "image-type":
return options.image.type;
Expand Down Expand Up @@ -558,7 +558,7 @@ test("if a request creates a server on Hetzner Cloud from snapshot", async (t) =
return options.server.type;
case "server-location":
return options.server.location;
case "image-name":
case "image-identifier":
return options.image.name;
case "image-type":
return options.image.type;
Expand Down

0 comments on commit 10ce2b7

Please sign in to comment.