Skip to content

Commit 27aa61d

Browse files
committed
Add badge to README. Get latest tflint
1 parent 9d62acd commit 27aa61d

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.circleci/config.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ jobs:
2323
- run:
2424
name: "Install: tflint"
2525
command: |
26-
apk add wget
27-
wget https://github.com./wata727/tflint/releases/download/v0.5.4/tflint_linux_amd64.zip
26+
apk add jq wget
27+
# Get latest version of tflint
28+
pkg_arch=linux_amd64
29+
dl_url=$(curl -s https://api.github.com./repos/wata727/tflint/releases/latest | jq -r ".assets[] | select(.name | test(\"${pkg_arch}\")) | .browser_download_url")
30+
wget ${dl_url}
2831
unzip tflint_linux_amd64.zip
2932
mkdir -p /usr/local/tflint/bin
30-
# TODO: CircleCI write to file for later run steps
31-
#export PATH=/usr/local/tflint/bin:$PATH
33+
# Setup PATH for later run steps - ONLY for Bash and not in Bash
34+
#echo 'export PATH=/usr/local/tflint/bin:$PATH' >> $BASH_ENV
3235
echo "Installing tflint..."
3336
install tflint /usr/local/tflint/bin
3437
echo "Configuring tflint..."

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![CircleCI](https://circleci.com/gh/devops-workflow/terraform-local-boolean.svg?style=svg)](https://circleci.com/gh/devops-workflow/terraform-local-boolean)
2+
13
Terraform module to simplify and expand boolean use
24
===
35

0 commit comments

Comments
 (0)