Skip to content

Commit

Permalink
Merge pull request #102 from Cox-Automotive/modifyTravisYaml
Browse files Browse the repository at this point in the history
Add New Assets
  • Loading branch information
amagana3 authored Oct 26, 2020
2 parents 86fee19 + 9c70ede commit fb7cb25
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
18 changes: 10 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ deploy:
api_key:
secure: MZOznxDJeaIT3IQYDZHoH7oazeuM8ekgZzvnUTq0gMHZc1gwB9uEYjvCwSVo0OlUKFPymarhv/65GolggV1+fZzig5HPOpJltTFj3w9RBXZZzZiNZ3X+eexyW+so07BtV1S+jytA/Dd8MpnT9EmCYTzpg6Gp/NosyQJ9FbS7hm8UQcH7PLiBWAeoL1Wb/aLZQZUQRBiYr8PmZ6lzVTY+w8h5KISi7TrL6EzbwXj3j3muCGm/9ZqX/6CAxmAydU0ozCjl4QksRqn2MDWgUSYgga2GKBqsTpU4hX05QCEXD/G2BcGmoaOFP29na+zhXlCZ9j7DrOCMisEWH/DiWwqWaNlqUgO81pGbQDayvpZAMGRrYsaSQTz7oEbuU88NeDFriy44WFGE+eE73ykPFQl6JNnptE3mF6dRVPb6GZhG0nzM+UKfNw4hhcWo45hmrfqLS8MJNci9O3HbMy+2Ka45u64RlX2AUnmNexdPFDmZSjARLrnFT4VUuTEeb3CRS8TmNaWEM1o2yWYgtCkM9qnhiAxlrcDt1Y/bqhgbhzoheslHmi+n9TlFeH1xHP9sTEOwji5ljyPv2iN0/YdInkz+lF/4gEQSZ6hvLGGp+v3FUV66PU8dCusw9ysJhlJ40pvobz7MNdsiscDBx0zqiYUAdSR7XSgUQV7aOJH6dmnqwQA=
file:
- release/terraform-provider-alks-darwin-amd64.tar.gz
- release/terraform-provider-alks-freebsd-386.tar.gz
- release/terraform-provider-alks-freebsd-amd64.tar.gz
- release/terraform-provider-alks-linux-386.tar.gz
- release/terraform-provider-alks-linux-amd64.tar.gz
- release/terraform-provider-alks-solaris-amd64.tar.gz
- release/terraform-provider-alks-windows-386.zip
- release/terraform-provider-alks-windows-amd64.zip
- release/terraform-provider-alks_${TRAVIS_TAG}_darwin_amd64.zip
- release/terraform-provider-alks_${TRAVIS_TAG}_freebsd_386.zip
- release/terraform-provider-alks_${TRAVIS_TAG}_freebsd_amd64.zip
- release/terraform-provider-alks_${TRAVIS_TAG}_linux_386.zip
- release/terraform-provider-alks_${TRAVIS_TAG}_linux_amd64.zip
- release/terraform-provider-alks_${TRAVIS_TAG}_solaris_amd64.zip
- release/terraform-provider-alks_${TRAVIS_TAG}_windows_386.zip
- release/terraform-provider-alks_${TRAVIS_TAG}_windows_amd64.zip
- release/terraform-provider-alks_${TRAVIS_TAG}_SHA256SUMS
- release/terraform-provider-alks_${TRAVIS_TAG}_SHA256SUMS.sig
skip_cleanup: true
on:
repo: Cox-Automotive/terraform-provider-alks
Expand Down
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,39 @@ release:

GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.versionNumber=$(TRAVIS_TAG)" -o release/terraform-provider-alks_v$(TRAVIS_TAG) -mod=vendor $(package)
chmod +x release/terraform-provider-alks_v$(TRAVIS_TAG)
tar -cvzf release/terraform-provider-alks-darwin-amd64.tar.gz -C release/ terraform-provider-alks_v$(TRAVIS_TAG)
zip release/terraform-provider-alks_$(TRAVIS_TAG)_darwin_amd64.zip release/terraform-provider-alks_v$(TRAVIS_TAG)

GOOS=freebsd GOARCH=386 go build -ldflags "-X main.versionNumber=$(TRAVIS_TAG)" -o release/terraform-provider-alks_v$(TRAVIS_TAG) -mod=vendor $(package)
chmod +x release/terraform-provider-alks_v$(TRAVIS_TAG)
tar -cvzf release/terraform-provider-alks-freebsd-386.tar.gz -C release/ terraform-provider-alks_v$(TRAVIS_TAG)
zip release/terraform-provider-alks_$(TRAVIS_TAG)_freebsd_386.zip release/terraform-provider-alks_v$(TRAVIS_TAG)

GOOS=freebsd GOARCH=amd64 go build -ldflags "-X main.versionNumber=$(TRAVIS_TAG)" -o release/terraform-provider-alks_v$(TRAVIS_TAG) -mod=vendor $(package)
chmod +x release/terraform-provider-alks_v$(TRAVIS_TAG)
tar -cvzf release/terraform-provider-alks-freebsd-amd64.tar.gz -C release/ terraform-provider-alks_v$(TRAVIS_TAG)
zip release/terraform-provider-alks_$(TRAVIS_TAG)_freebsd_amd64.zip release/terraform-provider-alks_v$(TRAVIS_TAG)

GOOS=linux GOARCH=386 go build -ldflags "-X main.versionNumber=$(TRAVIS_TAG)" -o release/terraform-provider-alks_v$(TRAVIS_TAG) -mod=vendor $(package)
chmod +x release/terraform-provider-alks_v$(TRAVIS_TAG)
tar -cvzf release/terraform-provider-alks-linux-386.tar.gz -C release/ terraform-provider-alks_v$(TRAVIS_TAG)
zip release/terraform-provider-alks_$(TRAVIS_TAG)_linux_386.zip release/terraform-provider-alks_v$(TRAVIS_TAG)

GOOS=linux GOARCH=amd64 go build -ldflags "-X main.versionNumber=$(TRAVIS_TAG)" -o release/terraform-provider-alks_v$(TRAVIS_TAG) -mod=vendor $(package)
chmod +x release/terraform-provider-alks_v$(TRAVIS_TAG)
tar -cvzf release/terraform-provider-alks-linux-amd64.tar.gz -C release/ terraform-provider-alks_v$(TRAVIS_TAG)
zip release/terraform-provider-alks_$(TRAVIS_TAG)_linux_amd64.zip release/terraform-provider-alks_v$(TRAVIS_TAG)

GOOS=solaris GOARCH=amd64 go build -ldflags "-X main.versionNumber=$(TRAVIS_TAG)" -o release/terraform-provider-alks_v$(TRAVIS_TAG) -mod=vendor $(package)
chmod +x release/terraform-provider-alks_v$(TRAVIS_TAG)
tar -cvzf release/terraform-provider-alks-solaris-amd64.tar.gz -C release/ terraform-provider-alks_v$(TRAVIS_TAG)
zip release/terraform-provider-alks_$(TRAVIS_TAG)_solaris_amd64.zip release/terraform-provider-alks_v$(TRAVIS_TAG)

GOOS=windows GOARCH=386 go build -ldflags "-X main.versionNumber=$(TRAVIS_TAG)" -o release/terraform-provider-alks_v$(TRAVIS_TAG).exe -mod=vendor $(package)
zip release/terraform-provider-alks-windows-386.zip release/terraform-provider-alks_v$(TRAVIS_TAG).exe
zip release/terraform-provider-alks_$(TRAVIS_TAG)_windows_386.zip release/terraform-provider-alks_v$(TRAVIS_TAG).exe

GOOS=windows GOARCH=amd64 go build -ldflags "-X main.versionNumber=$(TRAVIS_TAG)" -o release/terraform-provider-alks_v$(TRAVIS_TAG).exe -mod=vendor $(package)
zip release/terraform-provider-alks-windows-amd64.zip release/terraform-provider-alks_v$(TRAVIS_TAG).exe
zip release/terraform-provider-alks_$(TRAVIS_TAG)_windows_amd64.zip release/terraform-provider-alks_v$(TRAVIS_TAG).exe

shasum -a 256 release/*.tar.gz release/*.zip > release/terraform-provider-alks_v$(TRAVIS_TAG)_SHA256SUMS
shasum -a 256 release/*.zip > release/terraform-provider-alks_$(TRAVIS_TAG)_SHA256SUMS

echo $(GPG_KEY) | base64 --decode | gpg --batch --no-tty --yes --import

@gpg --pinentry-mode loopback --passphrase $(GPG_PASSPHRASE) -u C182B91A3A62B0D5 --detach-sign release/terraform-provider-alks_v$(TRAVIS_TAG)_SHA256SUMS
@gpg --pinentry-mode loopback --passphrase $(GPG_PASSPHRASE) -u C182B91A3A62B0D5 --detach-sign release/terraform-provider-alks_$(TRAVIS_TAG)_SHA256SUMS

rm release/terraform-provider-alks_v$(TRAVIS_TAG).exe

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This module is used for creating IAM Roles via the ALKS API.
For example on macOS:

```
curl -L https://github.com/Cox-Automotive/terraform-provider-alks/releases/download/1.5.0/terraform-provider-alks-darwin-amd64.tar.gz | tar zxv
curl https://github.com/Cox-Automotive/terraform-provider-alks/releases/download/1.5.0/terraform-provider-alks_1.5.0_darwin_amd64.zip -O -J -L | unzip
```

* Configure Terraform to use this plugin by placing the binary in `.terraform.d/plugins/` on MacOS/Linux or `terraform.d\plugins\` in your user's "Application Data" directory on Windows.
Expand All @@ -37,7 +37,7 @@ curl -L https://github.com/Cox-Automotive/terraform-provider-alks/releases/downl
For example on macOS:

```
curl -L https://github.com/Cox-Automotive/terraform-provider-alks/releases/download/1.5.0/terraform-provider-alks-darwin-amd64.tar.gz | tar zxv
curl https://github.com/Cox-Automotive/terraform-provider-alks/releases/download/1.5.0/terraform-provider-alks_1.5.0_darwin_amd64.zip -O -J -L | unzip
```

* Go into the Terraform plugins path; `.terraform.d/plugins/` on MacOS/Linux or `terraform.d\plugins\` in your user's "Application Data" directory on Windows.
Expand Down

0 comments on commit fb7cb25

Please sign in to comment.