Skip to content

Commit

Permalink
GitHub Super-Linter (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBrenner authored Jun 20, 2020
1 parent 4cd59e1 commit 9dfbebe
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 391 deletions.
182 changes: 0 additions & 182 deletions .dockerfile_lint/default_rules.yaml

This file was deleted.

138 changes: 0 additions & 138 deletions .dockerfile_lint/github_actions.yaml

This file was deleted.

30 changes: 24 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,38 @@ on:

jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Dockerfile lint
uses: docker://replicated/dockerfilelint:09a5034
with:
args: Dockerfile

- name: Docker build
run: docker build . --file Dockerfile --tag image

- name: Docker run
run: docker run --entrypoint cfn-lint image -v

lint:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest

##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@master

################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: docker://github/super-linter:latest
env:
VALIDATE_ALL_CODEBASE: true
Loading

0 comments on commit 9dfbebe

Please sign in to comment.