Skip to content

Commit

Permalink
Merge pull request #10256 from rifelpet/cfn-python-lint
Browse files Browse the repository at this point in the history
Fix cloudformation lint job
  • Loading branch information
k8s-ci-robot authored Nov 18, 2020
2 parents 6afa302 + df1e301 commit a0c8925
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions hack/cfn-lint.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM python:3.8-alpine
ARG CFNLINT_VERSION
RUN pip install "cfn-lint==${CFNLINT_VERSION}" pydot
ENTRYPOINT ["cfn-lint"]
7 changes: 1 addition & 6 deletions hack/verify-cloudformation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ IMAGE="cfn-python-lint:${TAG}"
# https://github.com/aws-cloudformation/cfn-python-lint/issues/1025
function docker_build() {
echo "Building cfn-python-lint image"
TMP=$(mktemp -d)
git clone -q -b "${TAG}" https://github.com/aws-cloudformation/cfn-python-lint "${TMP}"
pushd "${TMP}"
docker build --tag "${IMAGE}" .
popd
rm -rf "${TMP}"
docker build --build-arg "CFNLINT_VERSION=${TAG}" --tag "${IMAGE}" - < "${KOPS_ROOT}/hack/cfn-lint.Dockerfile"
}

docker image inspect "${IMAGE}" >/dev/null 2>&1 || docker_build
Expand Down

0 comments on commit a0c8925

Please sign in to comment.