Skip to content

Commit

Permalink
Merge pull request #319 from heroku/source-build-checksum
Browse files Browse the repository at this point in the history
Source build checksum
  • Loading branch information
davidji99 authored Jul 14, 2021
2 parents b274a20 + b2c01ec commit d9aa52c
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 88 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ jobs:
go-version: 1.16
id: go

- name: Install Terraform
run: |
set -eu
curl -s -L "https://releases.hashicorp.com/terraform/1.0.2/terraform_1.0.2_linux_amd64.zip" > "terraform-bin.zip"
# overwrite existing Terraform binary
terraform_bin="$(which terraform)"
unzip -p terraform-bin.zip > terraform-bin
sudo mv terraform-bin "$terraform_bin"
sudo chmod +x "$terraform_bin"
rm terraform-bin.zip
echo "Installed: $(eval "$terraform_bin version") ($terraform_bin)"
- uses: actions/checkout@master

- name: Run make fmt
Expand All @@ -37,6 +51,7 @@ jobs:

- name: Run tests
run: |
echo "Using: $(terraform version) ($(which terraform))"
make testacc TEST="./heroku/"
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The following arguments are supported:
* `app` - (Required) The ID of the Heroku app
* `buildpacks` - List of buildpack GitHub URLs
* `source` - (Required) A block that specifies the source code to build & release:
* `checksum` - Hash of the source archive for verifying its integrity, auto-generated when `source.path` is set,
* `checksum` - SHA256 hash of the tarball archive to verify its integrity, example:
`SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`
* `path` - (Required unless `source.url` is set) Local path to the source directory or tarball archive for the app
* `url` - (Required unless `source.path` is set) `https` location of the source archive for the app
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ module github.com/heroku/terraform-provider-heroku/v4

require (
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
github.com/google/uuid v1.1.1
github.com/google/uuid v1.1.2
github.com/hashicorp/go-multierror v1.0.0
github.com/hashicorp/go-uuid v1.0.1
github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0
github.com/heroku/heroku-go/v5 v5.3.0
github.com/mitchellh/go-homedir v1.1.0
github.com/verybluebot/tarinator-go v0.0.0-20190613183509-5ab4e1193986
Expand Down
Loading

0 comments on commit d9aa52c

Please sign in to comment.