Dockerfile & shell files lint #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- 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 | |
- 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 | |
- name: Build Dockerfile.sentinel | |
run: docker build . --file Dockerfile.sentinel --tag redis-sentinel:$(date +%s) |