Skip to content

Commit

Permalink
Add checksums to releases (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmattia authored Jul 22, 2021
1 parent cae1642 commit bafd866
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,23 @@ jobs:
- run: sudo apt update && sudo apt install -y make
- run: make build-all

# Create the release
# Create the binary checksums
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
- uses: tristan-weil/ghaction-checksum-sign-artifact@v1
id: checksums
with:
path: 'build/${{ steps.get_version.outputs.VERSION }}/*'
checksum_digests: sha256,sha512
checksum_format: gnu
checksum_output: one_file

# Create the release
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: "build/${{ steps.get_version.outputs.VERSION }}/*"
files: |
"build/${{ steps.get_version.outputs.VERSION }}/*"
"${{ steps.checksums.outputs.generated-files }}""
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=1.7.0
VERSION=1.7.1
PATH_BUILD=build/
FILE_COMMAND=terragrunt-atlantis-config
FILE_ARCH=darwin_amd64
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Then, make sure `terragrunt-atlantis-config` is present on your Atlantis server.

```hcl
variable "terragrunt_atlantis_config_version" {
default = "1.7.0"
default = "1.7.1"
}
build {
Expand Down Expand Up @@ -169,7 +169,7 @@ You can install this tool locally to checkout what kinds of config it will gener
Recommended: Install any version via go get:

```bash
cd && GO111MODULE=on go get github.com/transcend-io/terragrunt-atlantis-config@v1.7.0 && cd -
cd && GO111MODULE=on go get github.com/transcend-io/terragrunt-atlantis-config@v1.7.1 && cd -
```

This module officially supports golang versions v1.13, v1.14, v1.15, and v1.16, tested on CircleCI with each build
Expand All @@ -194,9 +194,9 @@ Finally, check the log output (or your output file) for the YAML.

To test any changes you've made, run `make test`.

Once all your changes are passing and your PR is reviewed, a merge into `master` will trigger a CircleCI job to build the new binary, test it, and deploy it's artifacts to an S3 bucket.
Once all your changes are passing and your PR is reviewed, a merge into `master` will trigger a Github Actions job to build the new binary, test it, and deploy it's artifacts to Github Releases along with checksums.

You can then open a PR on our homebrew tap similar to https://github.com/transcend-io/homebrew-tap/pull/4, and as soon as that merges your code will be released.
You can then open a PR on our homebrew tap similar to https://github.com/transcend-io/homebrew-tap/pull/4, and as soon as that merges your code will be released. Homebrew is not updated for every release, as Github is the primary artifact store.

## Stargazers over time

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "github.com/transcend-io/terragrunt-atlantis-config/cmd"
// This variable is set at build time using -ldflags parameters.
// But we still set a default here for those using plain `go get` downloads
// For more info, see: http://stackoverflow.com/a/11355611/483528
var VERSION string = "1.7.0"
var VERSION string = "1.7.1"

func main() {
cmd.Execute(VERSION)
Expand Down

0 comments on commit bafd866

Please sign in to comment.