add script to list all available tags of the image #23
This file contains hidden or 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: Shell Lint | |
| on: | |
| push: | |
| paths: | |
| - "**.sh" | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| shell-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Set up python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install shfmt-py shellcheck-py | |
| - name: Run shell format | |
| run: | | |
| globalStatus=0 | |
| while IFS= read -r -d '' f; do | |
| if ! shfmt -d -i 4 -- "$f"; then | |
| echo "[ERROR] shfmt failed for $f" | |
| globalStatus=1 | |
| fi | |
| done < <(find src -type f -name '*.sh' -print0) | |
| exit $globalStatus | |
| - name: Run shell check | |
| run: | | |
| globalStatus=0 | |
| while IFS= read -r -d '' f; do | |
| if ! shellcheck -x -e SC2034 -- "$f"; then | |
| echo "[ERROR] shellcheck failed for $f" | |
| globalStatus=1 | |
| fi | |
| done < <(find src -type f -name '*.sh' -print0) | |
| exit $globalStatus |