ci(actions): use hadolint (#121)

This commit is contained in:
Tim Brust 2020-06-13 12:57:38 +00:00 committed by GitHub
parent 06dabedb76
commit b77f810d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 13 deletions

View File

@ -1,6 +1,6 @@
name: Test Docker image
on: [push]
on: [push, pull_request]
jobs:
build:

11
.github/workflows/hadolint.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: Lint Dockerfiles
on: [push, pull_request]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: brew install hadolint
- run: hadolint {10,12}/Dockerfile

View File

@ -1,11 +0,0 @@
language: generic
services:
- docker
before_install:
- docker pull hadolint/hadolint
script:
- docker run --rm -i hadolint/hadolint hadolint --ignore DL3018 - < 10/Dockerfile
- docker run --rm -i hadolint/hadolint hadolint --ignore DL3018 - < 12/Dockerfile

View File

@ -2,7 +2,8 @@
[![Docker Automated build](https://img.shields.io/docker/automated/timbru31/node-alpine-git.svg)](https://hub.docker.com/r/timbru31/node-alpine-git/)
[![buildx Status](https://github.com/timbru31/docker-node-alpine-git/workflows/buildx/badge.svg)](https://github.com/timbru31/docker-node-alpine-git/actions?query=workflow%3Abuildx)
[![Build Status](https://travis-ci.org/timbru31/docker-node-alpine-git.svg?branch=master)](https://travis-ci.org/timbru31/docker-node-alpine-git)
[![Lint Dockerfiles](https://github.com/timbru31/docker-node-alpine-git/workflows/Lint%20Dockerfiles/badge.svg)](https://github.com/timbru31/docker-node-alpine-git/actions?query=workflow%3A%22Lint+Dockerfiles%22)
A minimal Dockerfile based on Node.js 10 LTS (Dubnium) or Node.js 12 LTS (Erbium) alpine with Git and ssh installed.