Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test installation on hashicorp/terraform docker image #870

Merged
merged 2 commits into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/install_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

jobs:
check:
vm:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -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
2 changes: 1 addition & 1 deletion install_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down