Skip to content

Commit

Permalink
fix(docs): exclude README.mdx from docs.zip (#26)
Browse files Browse the repository at this point in the history
- exclude docs/README.mdx from docs.zip and rename docs/builder to docs/builders so that zip's content is compatible with Hashicorp website
- change example directory link to point GH repository
  • Loading branch information
peknur authored Feb 23, 2022
1 parent e8cc0dc commit 6ddb9f9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ examples/crash.log
dist
packer-plugin-upcloud
vendor
docs.zip
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ install-packer-sdc: ## Install packer sofware development command
go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc@$(HASHICORP_PACKER_PLUGIN_SDK_VERSION)

ci-release-docs: install-packer-sdc generate
@/bin/sh -c "[ -d docs ] && zip -r docs.zip docs/"
@/bin/sh -c "[ -d docs ] && zip -x docs/README.mdx -r docs.zip docs/"

plugin-check: install-packer-sdc build
$(PACKER_SDC) plugin-check $(BINARY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ source "upcloud" "test" {
}
communicator = "ssh"

# Use bastion host to get access to private network if need
# Use bastion host to get access to private network
# ssh_bastion_username = "<bastion_username>"
# ssh_bastion_host = "<bastion_host>"
# ssh_bastion_private_key_file = "<bastion_private_key_file>"
Expand Down
2 changes: 1 addition & 1 deletion docs-src/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ on [installing a plugin](https://www.packer.io/docs/extending/plugins/#installin

### Builders

- [upcloud](/docs/builder/upcloud.mdx) - The upcloud builder is used to generate storage templates on UpCloud.
- [upcloud](/docs/builders/upcloud.mdx) - The upcloud builder is used to generate storage templates on UpCloud.

## JSON Templates
From Packer version 1.7.0, template HCL2 becomes officially the preferred way to write Packer configuration. While the `json` format is still supported, but certain new features, such as `packer init` works only in newer HCL2 format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The upcloud builder is used to generate storage templates on UpCloud.
-->
### Example Usage

Here is a sample template, which you can also find in the [example](../../example/) directory.
Here is a sample template, which you can also find in the [example](https://github.com/UpCloudLtd/packer-plugin-upcloud/tree/master/example) directory.
It reads your UpCloud API credentials from the environment variables, creates an Ubuntu 20.04 LTS server in the `nl-ams1` region and authorizes root user to loggin with your public SSH key.

```hcl
Expand Down
2 changes: 1 addition & 1 deletion docs/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ on [installing a plugin](https://www.packer.io/docs/extending/plugins/#installin

### Builders

- [upcloud](/docs/builder/upcloud.mdx) - The upcloud builder is used to generate storage templates on UpCloud.
- [upcloud](/docs/builders/upcloud.mdx) - The upcloud builder is used to generate storage templates on UpCloud.

## JSON Templates
From Packer version 1.7.0, template HCL2 becomes officially the preferred way to write Packer configuration. While the `json` format is still supported, but certain new features, such as `packer init` works only in newer HCL2 format.
Expand Down
4 changes: 2 additions & 2 deletions docs/builder/upcloud.mdx → docs/builders/upcloud.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ The upcloud builder is used to generate storage templates on UpCloud.
-->
### Example Usage

Here is a sample template, which you can also find in the [example](../../example/) directory.
Here is a sample template, which you can also find in the [example](https://github.com/UpCloudLtd/packer-plugin-upcloud/tree/master/example) directory.
It reads your UpCloud API credentials from the environment variables, creates an Ubuntu 20.04 LTS server in the `nl-ams1` region and authorizes root user to loggin with your public SSH key.

```hcl
Expand Down Expand Up @@ -352,7 +352,7 @@ source "upcloud" "test" {
}
communicator = "ssh"

# Use bastion host to get access to private network if need
# Use bastion host to get access to private network
# ssh_bastion_username = "<bastion_username>"
# ssh_bastion_host = "<bastion_host>"
# ssh_bastion_private_key_file = "<bastion_private_key_file>"
Expand Down

0 comments on commit 6ddb9f9

Please sign in to comment.