-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0edfed7
commit 8c6c137
Showing
1 changed file
with
19 additions
and
19 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 |
---|---|---|
|
@@ -64,26 +64,26 @@ runs: | |
exit 1 | ||
fi | ||
- name: Install hadolint | ||
shell: bash | ||
run: | | ||
brew install hadolint | ||
- name: Run Hadolint | ||
working-directory: ${{ inputs.directory }} | ||
shell: bash | ||
run: | | ||
hadolint Dockerfile | ||
# # Workaround used because option "work-directory" cannot be used with "uses", it only works with the key-word "run". | ||
# - name: Move to specific directory | ||
# - name: Install hadolint | ||
# shell: bash | ||
# run: | | ||
# cd ${{ github.workspace }}/${{ inputs.directory }} | ||
# brew install hadolint | ||
|
||
# - name: Run Hadolint | ||
# uses: hadolint/[email protected] | ||
# env: | ||
# HADOLINT_RECURSIVE: "${{ inputs.recursive }}" | ||
# with: | ||
# dockerfile: "Dockerfile" | ||
# recursive: ${{ inputs.recursive }} | ||
# working-directory: ${{ inputs.directory }} | ||
# shell: bash | ||
# run: | | ||
# hadolint Dockerfile | ||
# Workaround used because option "work-directory" cannot be used with "uses", it only works with the key-word "run". | ||
- name: Move to specific directory | ||
shell: bash | ||
run: | | ||
cd ${{ github.workspace }}/${{ inputs.directory }} | ||
- name: Run Hadolint | ||
uses: hadolint/[email protected] | ||
env: | ||
HADOLINT_RECURSIVE: "${{ inputs.recursive }}" | ||
with: | ||
dockerfile: "**/Dockerfile" | ||
recursive: ${{ inputs.recursive }} |