-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add hadolint to CI Signed-off-by: Azanul <[email protected]> * maintainer is depreciated Signed-off-by: Azanul <[email protected]> * shell check changes Signed-off-by: Azanul <[email protected]> * add shellcheck CI Signed-off-by: Azanul <[email protected]> * invalid label key fix Signed-off-by: Azanul <[email protected]> * Docker files lint fixes Signed-off-by: Azanul <[email protected]> * CI fail Signed-off-by: Azanul <[email protected]> * check shellcheck Signed-off-by: Azanul <[email protected]> * shellcheck fix Signed-off-by: Azanul <[email protected]> --------- Signed-off-by: Azanul <[email protected]>
- Loading branch information
Showing
8 changed files
with
76 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,19 +9,40 @@ jobs: | |
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) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Shell scripts CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
shellcheck: | ||
name: Shellcheck | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run ShellCheck | ||
uses: ludeeus/action-shellcheck@master |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
PODS="$1" | ||
|
||
yes yes | redis-cli --cluster create ${PODS} | ||
yes yes | redis-cli --cluster create "${PODS}" |
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
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