Skip to content

Commit

Permalink
Add linux + arch to zip suffix (#10)
Browse files Browse the repository at this point in the history
* Add linux + arch to zip suffix

* Bump version
  • Loading branch information
guangie88 committed Apr 17, 2018
1 parent cd9185d commit 28cd557
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@ after_success:
elif [ "$ARTIFACT" = "true" ] && [ -n "$TRAVIS_TAG" ]; then
# upload binary artifact when this is a new tag
# this needs to be jq processed to extract out the `id` value
export TAG_ID=$(curl -X GET \
TAG_ID=$(curl -X GET \
-H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/$REPO_USERNAME/$REPO_NAME/releases" \
| jq -r '.[] | select(.tag_name == "'$TRAVIS_TAG'").id')
# formulate zip
export ZIP_FILE=$BINARY_NAME-$TRAVIS_TAG.zip
ZIP_SUFFIX=`uname -s | tr '[:upper:]' '[:lower:]'`-`uname -i`
ZIP_FILE=$BINARY_NAME-$TRAVIS_TAG-$ZIP_SUFFIX.zip
zip -j $ZIP_FILE "$ARTIFACTS_DIR/$BINARY_NAME"
curl -X POST \
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "terraform-zap"
version = "0.2.2"
version = "0.2.3"
authors = ["Chen Weiguang <chen.weiguang@gmail.com>"]
description = "Script wrapper to perform finer terraform destroy"
repository = "https://github.com/guangie88/terraform-zap"
Expand All @@ -19,7 +19,7 @@ is_executable = "=0.1.0"
structopt = "=0.2.7"
structopt-derive = "=0.2.7"
subprocess = "=0.1.12"
terraform-zap-ignore-lib = { path = "ignore-lib", version = "0.2.2" }
terraform-zap-ignore-lib = { path = "ignore-lib", version = "0.2.3" }
toml = "=0.4.6"
which = "=2.0.0"
whiteread = "=0.4.3"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ commands in order to skip the above resources to possibly resolve the

## How to install

### Direct download for Linux (AMD64)
### Direct download for Linux x86_64

The easiest way is to run the install script using shell as shown below.

Expand Down
2 changes: 1 addition & 1 deletion ignore-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "terraform-zap-ignore-lib"
version = "0.2.2"
version = "0.2.3"
authors = ["Chen Weiguang <chen.weiguang@gmail.com>"]
description = "Provides ignore implementation to terraform-zap"
documentation = "https://docs.rs/terraform-zap-ignore-lib"
Expand Down
4 changes: 3 additions & 1 deletion install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ LATEST_TAG=$(curl -sSf "https://api.github.com/repos/$REPO_USERNAME/$REPO_NAME/r
| sed -n 's/.*"\(v.*\)".*/\1/p')

BINARY_FILE=terraform-zap
ZIP_FILE=$BINARY_FILE-$LATEST_TAG.zip
ZIP_SUFFIX=`uname -s | tr '[:upper:]' '[:lower:]'`-`uname -i`
ZIP_FILE=$BINARY_NAME-$TRAVIS_TAG-$ZIP_SUFFIX.zip

BIN_DIR=/usr/local/bin

# unzip cannot work on Unix pipe
Expand Down

0 comments on commit 28cd557

Please sign in to comment.