Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ before:
hooks:
- "sh -c \"rm -rf .release && mkdir -p .release && jq --arg v '{{ .Version }}' '.version = $v' plugin.json > .release/plugin.json\""
- "sh -c \"jq -e --arg v '{{ .Version }}' '.version == $v' .release/plugin.json > /dev/null || (echo 'plugin.json version rewrite failed' >&2 && exit 1)\""
- "cp plugin.json cmd/workflow-plugin-hover/plugin.json"

builds:
- id: workflow-plugin-hover
Expand Down
12 changes: 11 additions & 1 deletion cmd/workflow-plugin-hover/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,22 @@
package main

import (
_ "embed"

"github.com/GoCodeAlone/workflow-plugin-hover/internal"
sdk "github.com/GoCodeAlone/workflow/plugin/external/sdk"
)

// pluginJSON is the committed plugin.json embedded at build time.
// goreleaser's before hook copies plugin.json from the repo root to this
// directory before building so go:embed resolves correctly.
//
//go:embed plugin.json
var pluginJSON []byte

func main() {
sdk.ServeIaCPlugin(internal.NewIaCServer(), sdk.IaCServeOptions{
BuildVersion: sdk.ResolveBuildVersion(internal.Version),
ManifestProvider: sdk.MustEmbedManifest(pluginJSON),
BuildVersion: sdk.ResolveBuildVersion(internal.Version),
})
}
51 changes: 51 additions & 0 deletions cmd/workflow-plugin-hover/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "workflow-plugin-hover",
"version": "0.0.0",
"description": "Hover DNS provider (browser-style login + TOTP, no official SDK)",
"author": "GoCodeAlone",
"license": "MIT",
"type": "external",
"tier": "community",
"private": false,
"minEngineVersion": "0.60.6",
"keywords": [
"dns",
"hover",
"iac",
"infra.dns",
"totp"
],
"homepage": "https://github.com/GoCodeAlone/workflow-plugin-hover",
"repository": "https://github.com/GoCodeAlone/workflow-plugin-hover",
"capabilities": {
"moduleTypes": [
"iac.provider.hover"
],
"stepTypes": [],
"triggerTypes": [],
"resourceTypes": [
"infra.dns",
"infra.dns_delegation"
]
},
"required_secrets": [
{
"name": "HOVER_USERNAME",
"sensitive": false,
"description": "Hover account username",
"prompt": "Hover username"
},
{
"name": "HOVER_PASSWORD",
"sensitive": true,
"description": "Hover account password",
"prompt": "Hover password"
},
{
"name": "HOVER_TOTP_SECRET",
"sensitive": true,
"description": "Base32-encoded TOTP seed shown when you enabled 2FA. The plugin generates 6-digit codes per RFC 6238 on each login.",
"prompt": "Hover TOTP seed (base32, 16+ chars)"
}
]
}
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "workflow-plugin-hover",
"version": "0.2.0",
"version": "0.0.0",
"description": "Hover DNS provider (browser-style login + TOTP, no official SDK)",
"author": "GoCodeAlone",
"license": "MIT",
Expand Down