Skip to content

Commit

Permalink
feat: Always run lint before building images
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Aug 30, 2023
1 parent 7bc3437 commit 4e4b329
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 47 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/deploy-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,23 @@ env:
images: capella/base capella/remote capella/ease capella/readonly

jobs:
lint-docker-files:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
docker_file:
- "base/Dockerfile"
- "builder/Dockerfile"
- "capella/Dockerfile"
- "ease/debug/Dockerfile"
- "ease/Dockerfile"
- "eclipse/Dockerfile"
- "jupyter-notebook/Dockerfile"
- "papyrus/Dockerfile"
- "pure-variants/Dockerfile"
- "readonly/Dockerfile"
- "remote/Dockerfile"
- "t4c/Dockerfile"
- "tests/local-git-server/Dockerfile"
name: Docker file ${{ matrix.docker_file }}
steps:
- uses: actions/checkout@v3
- uses: hadolint/[email protected]
- uses: actions/setup-python@v4
with:
dockerfile: ${{ matrix.docker_file }}
override-info: DL3002,DL3006,DL3008
failure-threshold: warning
python-version: "3.11"
- name: Install pre-commit
run: |-
python -m pip install pre-commit
- name: Run pre-commit
run: |-
pre-commit run --all-files
deploy-docker-images:
runs-on: ubuntu-latest
needs: [lint]
strategy:
matrix:
capella_version:
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/pre-commit.yml

This file was deleted.

0 comments on commit 4e4b329

Please sign in to comment.