Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile & shell files lint #58

Merged
merged 9 commits into from
Oct 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add hadolint to CI
Signed-off-by: Azanul <azanulhaque@gmail.com>
Azanul committed Oct 6, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit a94a9a26b005c975fff33cffa645f9efe9e18cad
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -9,19 +9,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: hadolint/hadolint-action@v3.1.0
name: Lint Dockerfile
with:
dockerfile: Dockerfile
Azanul marked this conversation as resolved.
Show resolved Hide resolved

- 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/hadolint-action@v3.1.0
name: Lint Dockerfile.exporter
with:
dockerfile: Dockerfile.exporter
Azanul marked this conversation as resolved.
Show resolved Hide resolved

- 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/hadolint-action@v3.1.0
name: Lint Dockerfile.sentinel
with:
dockerfile: Dockerfile.sentinel
Azanul marked this conversation as resolved.
Show resolved Hide resolved

- name: Build Dockerfile.sentinel
run: docker build . --file Dockerfile.sentinel --tag redis-sentinel:$(date +%s)