mirror of
https://github.com/Neur0toxine/docker-node-alpine-git-gyp.git
synced 2024-11-28 07:16:01 +03:00
ci(actions): use hadolint (#121)
This commit is contained in:
parent
06dabedb76
commit
b77f810d76
2
.github/workflows/dockerimage.yml
vendored
2
.github/workflows/dockerimage.yml
vendored
@ -1,6 +1,6 @@
|
||||
name: Test Docker image
|
||||
|
||||
on: [push]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
11
.github/workflows/hadolint.yml
vendored
Normal file
11
.github/workflows/hadolint.yml
vendored
Normal 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
|
11
.travis.yml
11
.travis.yml
@ -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
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user