From a76a753a6fb609f52e4a450e4f1cbafe2c75d37e Mon Sep 17 00:00:00 2001 From: Andrew LeFevre Date: Fri, 28 Oct 2022 18:02:09 -0400 Subject: [PATCH] add workflow to lint dockerfile --- .github/workflows/lint-docker.yml | 17 +++++++++++++++++ .github/workflows/{lint.yml => lint-go.yml} | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint-docker.yml rename .github/workflows/{lint.yml => lint-go.yml} (99%) diff --git a/.github/workflows/lint-docker.yml b/.github/workflows/lint-docker.yml new file mode 100644 index 0000000..0c218fa --- /dev/null +++ b/.github/workflows/lint-docker.yml @@ -0,0 +1,17 @@ +name: Lint Dockerfile + +on: + push: + paths: + - Dockerfile + +jobs: + lint-dockerfile: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - uses: hadolint/hadolint-action@v2 + with: + dockerfile: Dockerfile diff --git a/.github/workflows/lint.yml b/.github/workflows/lint-go.yml similarity index 99% rename from .github/workflows/lint.yml rename to .github/workflows/lint-go.yml index 6c2f041..5d6e5db 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint-go.yml @@ -1,4 +1,4 @@ -name: Lint +name: Lint Go on: push: