Skip to content

Commit

Permalink
Remove dockerfile (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Feb 11, 2021
1 parent 8b8384a commit b6d962b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 27 deletions.
4 changes: 1 addition & 3 deletions checks/requirements
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ function checkRun () {
mkdir -p "$repoPath/requirements"
git clone --depth 1 https://github.com/home-assistant/wheels-custom-integrations.git "$repoPath/wheels-custom-integrations"
cd "$repoPath/wheels-custom-integrations"
jq -r .requirements "$GITHUB_ACTION_PATH/data/manifest.json" > "$repoPath/wheels-custom-integrations/validate_requirements/requirements.json"
jq . "$repoPath/wheels-custom-integrations/validate_requirements/requirements.json"
jq -r .requirements "$GITHUB_ACTION_PATH/data/manifest.json" > "$repoPath/wheels-custom-integrations/validate_requirements/files.json"
cp "$GITHUB_ACTION_PATH/helpers/requirements/__init__.py" "$repoPath/wheels-custom-integrations/validate_requirements"
cp "$GITHUB_ACTION_PATH/helpers/requirements/run.sh" "$repoPath/wheels-custom-integrations/validate_requirements"
touch "$repoPath/wheels-custom-integrations/validate_requirements/files.json"
docker build -t validate -f validate_requirements/Dockerfile .
set +e
docker run --rm validate
Expand Down
22 changes: 0 additions & 22 deletions helpers/requirements/Dockerfile

This file was deleted.

3 changes: 1 addition & 2 deletions helpers/requirements/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ def validate() -> bool:
"""Do the validation."""
print("Validating requirements")
print()
piped_input = sys.stdin.read()
requirements = []
with open("/action/validate/requirements.json", "r") as requirements_file:
with open("/action/validate/files.json", "r") as requirements_file:
requirements = json.loads(requirements_file.read())
validated_ok = True
print("Requirements to validate:", len(requirements))
Expand Down
1 change: 1 addition & 0 deletions helpers/requirements/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
mkdir -p /action
mv /validate /action/validate
cd /action || exit 1
cat /action/validate/files.json
python3 -m validate

0 comments on commit b6d962b

Please sign in to comment.