chore: support dockerfile lint. (#479)

This commit is contained in:
Bo-Yi Wu 2020-03-01 20:31:28 +08:00 committed by GitHub
parent b58386704c
commit eb136d137a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View File

@ -43,6 +43,19 @@ steps:
- name: gopath
path: /go
- name: hadolint
pull: always
image: hadolint/hadolint:latest-debian
commands:
- hadolint --version
- hadolint docker/Dockerfile.linux.amd64
- hadolint docker/Dockerfile.linux.arm64
- hadolint docker/Dockerfile.linux.arm
- hadolint docker/Dockerfile.windows.amd64
volumes:
- name: gopath
path: /go
- name: test
pull: always
image: golang:1.14

View File

@ -63,6 +63,24 @@
},
],
},
{
name: 'hadolint',
image: 'hadolint/hadolint:latest-debian',
pull: 'always',
commands: [
'hadolint --version',
'hadolint docker/Dockerfile.linux.amd64',
'hadolint docker/Dockerfile.linux.arm64',
'hadolint docker/Dockerfile.linux.arm',
'hadolint docker/Dockerfile.windows.amd64',
],
volumes: [
{
name: 'gopath',
path: '/go',
},
],
},
{
name: 'test',
image: 'golang:1.14',