From 1bbeb817188726bec03569acf7c8dbb349122eb9 Mon Sep 17 00:00:00 2001 From: Ben Drucker Date: Mon, 10 Aug 2020 15:44:30 -0700 Subject: [PATCH 1/2] test installation on hashicorp/terraform docker image --- .github/workflows/install_script.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/install_script.yml b/.github/workflows/install_script.yml index cef948b0d..4515da951 100644 --- a/.github/workflows/install_script.yml +++ b/.github/workflows/install_script.yml @@ -9,7 +9,7 @@ on: - master jobs: - check: + vm: name: ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -26,3 +26,21 @@ jobs: TFLINT_VERSION: v0.15.0 run: | bash install_linux.sh + container: + runs-on: ubuntu-latest + container: + image: hashicorp/terraform + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install dependencies + run: | + apk add bash curl unzip sudo + - name: Install latest version + run: | + bash install_linux.sh + - name: Install specific version + env: + TFLINT_VERSION: v0.15.0 + run: | + bash install_linux.sh From dde094079ee0e3b4cf067e9e0460fcf03d106a90 Mon Sep 17 00:00:00 2001 From: Corey Hemminger Date: Tue, 21 Jul 2020 18:23:01 -0500 Subject: [PATCH 2/2] -C throws error, should be -c -C throws error, should be -c --- install_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_linux.sh b/install_linux.sh index 20951f7f9..99e824de3 100755 --- a/install_linux.sh +++ b/install_linux.sh @@ -66,7 +66,7 @@ if [[ $os == "windows"* ]]; then else echo "Installing /tmp/tflint to /usr/local/bin..." sudo mkdir -p /usr/local/bin - sudo install -b -C -v /tmp/tflint /usr/local/bin/ + sudo install -b -c -v /tmp/tflint /usr/local/bin/ retVal=$? if [ $retVal -ne 0 ]; then echo "Failed to install tflint"