Merge pull request #1 from idrinth-api-bench/add-current-containers #2
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
name: api-bench-history-microservice Hadolint | |
on: | |
push: | |
branches: | |
- the-one | |
paths: | |
- 'containers/api-bench-history-microservice/Dockerfile' | |
- '.github/workflows/api-bench-history-microservice.hadolint.yml' | |
pull_request: | |
branches: | |
- the-one | |
paths: | |
- 'containers/api-bench-history-microservice/Dockerfile' | |
- '.github/workflows/api-bench-history-microservice.hadolint.yml' | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 360 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- run: sudo apt-get install shellcheck -y | |
- run: wget https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 | |
- run: sudo mv hadolint-Linux-x86_64 /usr/local/bin/hadolint | |
- run: sudo chmod +x /usr/local/bin/hadolint | |
- run: hadolint containers/api-bench-history-microservice/Dockerfile |