Skip to content

Dockerfile & shell files lint #38

Dockerfile & shell files lint

Dockerfile & shell files lint #38

Workflow file for this run

name: Docker Image CI
on:
pull_request:
branches: [ "master" ]
jobs:
build_dockerfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hadolint/[email protected]
name: Lint Dockerfile
with:
dockerfile: Dockerfile
ignore: DL3007,DL3018
- name: Build Dockerfile
run: docker build . --file Dockerfile --tag redis:$(date +%s)
build_dockerfile_exporter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hadolint/[email protected]
name: Lint Dockerfile.exporter
with:
dockerfile: Dockerfile.exporter
ignore: DL3007,DL3018
- name: Build Dockerfile.exporter
run: docker build . --file Dockerfile.exporter --tag redis-exporter:$(date +%s)
build_dockerfile_sentinel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: hadolint/[email protected]
name: Lint Dockerfile.sentinel
with:
dockerfile: Dockerfile.sentinel
ignore: DL3007,DL3018
- name: Build Dockerfile.sentinel
run: docker build . --file Dockerfile.sentinel --tag redis-sentinel:$(date +%s)