-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0). | ||
# | ||
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your | ||
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE` | ||
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `GPG_PASSPHRASE` | ||
# secret. If you would rather own your own GPG handling, please fork this action | ||
# or use an alternative one for key handling. | ||
# | ||
|
@@ -34,7 +34,7 @@ jobs: | |
uses: hashicorp/[email protected] | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
PASSPHRASE: ${{ secrets.PASSPHRASE }} | ||
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
packer_cache | ||
crash.log | ||
packer-plugin-sshkey | ||
.docs | ||
docs.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,25 +4,34 @@ BINARY=packer-plugin-${NAME} | |
COUNT?=1 | ||
TEST?=$(shell go list ./...) | ||
|
||
.PHONY: dev | ||
HASHICORP_PACKER_PLUGIN_SDK_VERSION?=$(shell go list -m github.com/hashicorp/packer-plugin-sdk | cut -d " " -f2) | ||
|
||
# go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc@latest | ||
generate: | ||
@cd sshkey && go generate | ||
.PHONY: dev | ||
|
||
build: generate | ||
build: | ||
@go build -o ${BINARY} | ||
|
||
dev: build | ||
@mkdir -p ~/.packer.d/plugins/ | ||
@cp ${BINARY} ~/.packer.d/plugins/${BINARY} | ||
|
||
run-example: dev | ||
@packer build sshkey/test-fixtures/rsa.pkr.hcl | ||
@mv ${BINARY} ~/.packer.d/plugins/${BINARY} | ||
|
||
test: | ||
@go test -count $(COUNT) $(TEST) -timeout=3m | ||
@go test -race -count $(COUNT) $(TEST) -timeout=3m | ||
|
||
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 | ||
@packer-sdc renderdocs -src docs -partials docs-partials/ -dst docs/ | ||
@/bin/sh -c "[ -d docs ] && zip -r docs.zip docs/" | ||
|
||
plugin-check: install-packer-sdc build | ||
@packer-sdc plugin-check ${BINARY} | ||
|
||
testacc: dev | ||
@rm -rf sshkey/packer_cache | ||
@PACKER_ACC=1 go test -count $(COUNT) -v $(TEST) -timeout=120m | ||
|
||
generate: install-packer-sdc | ||
@go generate ./... | ||
packer-sdc renderdocs -src ./docs -dst ./.docs -partials ./docs-partials | ||
This comment has been minimized.
Sorry, something went wrong.
nywilken
Contributor
|
||
# checkout the .docs folder for a preview of the docs |
Hi @ivoronin It looks like the steps needed for generating the docs.zip file that gets ingested by the Packer.io site have been removed. This fill is needed in order for Packer.io to publish the documentation for this plugin.
Looking at your recent changes I think you might've pulled in the updates from the scaffolding template repo, but are missing the
make ci-release-docs
If this was in error can you please generate the docs.zip file and uploaded to the latest GitHub release.