trying to add hadolint in actions
@@ -14,11 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - name: install hadolint
+ run: apt-get update && apt-get -y install hadolint
+ - name: run hadolint
+ run: hadolint Dockerfile
- name: build container
run: docker build --file cmd/http-content-check/Dockerfile --tag $IMAGE_NAME .
- name: Log into docker hub
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u integrii --password-stdin
- name: Push new latest image
- run: |
- docker tag $IMAGE_NAME kuberhealthy/$IMAGE_NAME
+ run: docker tag $IMAGE_NAME kuberhealthy/$IMAGE_NAME
docker push kuberhealthy/$IMAGE_NAME
