forked from Ed-Fi-Alliance-OSS/AdminAPI-2.x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from CSR2017/ADMINAPI-346-temp-2
Add docker file linting
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: On Pull Request - Dockerfile | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/workflows/on-pullrequest-dockerfile.yml" | ||
- "Docker/*" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/workflows/on-pullrequest-dockerfile.yml" | ||
- "Docker/*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker-testing: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
|
||
- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0 | ||
name: Run Linter on Dockerfiles | ||
with: | ||
dockerfile: "Docker/api-mssql.Dockerfile Docker/api-pgsql.Dockerfile Docker/dbadmin.Dockerfile Docker/dev.Dockerfile" | ||
|
||
# - uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0 | ||
# name: Run Linter on NPM Dockerfile | ||
# with: | ||
# dockerfile: docker/Dockerfile | ||
|
||
# - name: Build the NPM Docker image | ||
# # To confirm no errors occur. The "local" one will be built by the e2e | ||
# # testing process. | ||
# run: docker build --build-arg ML_VERSION=pre . | ||
# working-directory: docker |
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