Skip to content

Commit

Permalink
Merge pull request #109 from ethanmdavidson/fix-release-process
Browse files Browse the repository at this point in the history
Fix release process
  • Loading branch information
ethanmdavidson authored Dec 24, 2023
2 parents bb5cc5b + 22a50aa commit 569fc15
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 9 deletions.
16 changes: 15 additions & 1 deletion .web-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To install this plugin, copy and paste this code into your Packer configuration,
packer {
required_plugins {
git = {
version = ">= 0.4.3"
version = ">= 0.5.0"
source = "github.com/ethanmdavidson/git"
}
}
Expand All @@ -21,6 +21,20 @@ Alternatively, you can use `packer plugins install` to manage installation of th
$ packer plugins install github.com/ethanmdavidson/git
```

### Manual Installation

You can find pre-built binary releases of the plugin
[here](https://github.com/ethanmdavidson/packer-plugin-git/releases).

Or, if you prefer to build the plugin from its source
code, clone [the GitHub repository](https://github.com/ethanmdavidson/packer-plugin-git)
locally and run the command `make build` from the root
directory. Upon successful compilation, a `packer-plugin-git` plugin
binary file can be found in the root directory.

Once the binary is downloaded or built, please follow the Packer
documentation on
[installing a plugin](https://www.packer.io/docs/extending/plugins/#installing-plugins).

### Components

Expand Down
6 changes: 6 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ test: phony
staticcheck -checks="all" -tests ./...
go test -race -count $(COUNT) $(TEST) -timeout=3m

test-releaser: export API_VERSION = x5.0
test-releaser: phony
go install github.com/goreleaser/goreleaser@latest
goreleaser check
goreleaser release --snapshot --clean --skip=sign

# the acceptance tests have a weird habit of messing up the tty (e.g. turning off echo mode, so
# terminal stops showing what you type). If this happens to you, run `reset` or `stty sane` to fix.
testacc: phony dev
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Add the plugin to your packer config:
packer {
required_plugins {
git = {
version = ">= 0.4.3"
version = ">= 0.5.0"
source = "github.com/ethanmdavidson/git"
}
}
Expand Down
16 changes: 15 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To install this plugin, copy and paste this code into your Packer configuration,
packer {
required_plugins {
git = {
version = ">= 0.4.3"
version = ">= 0.5.0"
source = "github.com/ethanmdavidson/git"
}
}
Expand All @@ -21,6 +21,20 @@ Alternatively, you can use `packer plugins install` to manage installation of th
$ packer plugins install github.com/ethanmdavidson/git
```

### Manual Installation

You can find pre-built binary releases of the plugin
[here](https://github.com/ethanmdavidson/packer-plugin-git/releases).

Or, if you prefer to build the plugin from its source
code, clone [the GitHub repository](https://github.com/ethanmdavidson/packer-plugin-git)
locally and run the command `make build` from the root
directory. Upon successful compilation, a `packer-plugin-git` plugin
binary file can be found in the root directory.

Once the binary is downloaded or built, please follow the Packer
documentation on
[installing a plugin](https://www.packer.io/docs/extending/plugins/#installing-plugins).

### Components

Expand Down
5 changes: 0 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ module github.com/ethanmdavidson/packer-plugin-git

go 1.19

// hcl and go-cty cannot be upgraded until an issue with packer is resolved
// for more info see https://github.com/ethanmdavidson/packer-plugin-git/pull/49#issuecomment-1502290753
// github.com/hashicorp/hcl/v2 v2.13.0
// github.com/zclconf/go-cty v1.10.0

require (
github.com/go-git/go-git/v5 v5.11.0
github.com/hashicorp/hcl/v2 v2.19.1
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var (
// Version is the main version number that is being run at the moment.
Version = "0.4.3"
Version = "0.5.0"

// VersionPrerelease is A pre-release marker for the Version. If this is ""
// (empty string) then it means that it is a final release. Otherwise, this
Expand Down

0 comments on commit 569fc15

Please sign in to comment.