mirror of
https://github.com/Neur0toxine/docker-node-alpine-git-gyp.git
synced 2025-02-19 21:53:20 +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 @@
|
||||
|
||||
[](https://hub.docker.com/r/timbru31/node-alpine-git/)
|
||||
[](https://github.com/timbru31/docker-node-alpine-git/actions?query=workflow%3Abuildx)
|
||||
[](https://travis-ci.org/timbru31/docker-node-alpine-git)
|
||||
[](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…
x
Reference in New Issue
Block a user