mirror of
https://github.com/dockur/proxmox.git
synced 2026-07-27 16:54:51 +07:00
fix: Resolve shellcheck warnings (#97)
This commit is contained in:
+25
-20
@@ -1,5 +1,7 @@
|
|||||||
on: [workflow_call]
|
on: [workflow_call]
|
||||||
|
|
||||||
name: "Check"
|
name: "Check"
|
||||||
|
|
||||||
permissions: {}
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -7,24 +9,27 @@ jobs:
|
|||||||
name: shellcheck
|
name: shellcheck
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
|
||||||
name: Checkout code
|
|
||||||
uses: actions/checkout@v7
|
|
||||||
- parallel:
|
|
||||||
-
|
-
|
||||||
name: Run ShellCheck
|
name: Checkout code
|
||||||
uses: ludeeus/action-shellcheck@master
|
uses: actions/checkout@v7
|
||||||
env:
|
- parallel:
|
||||||
SHELLCHECK_OPTS: -x --source-path=src -e SC2114 -e SC2129 -e SC2034 -e SC1087 -e SC2317 -e SC2046
|
-
|
||||||
-
|
name: Run ShellCheck
|
||||||
name: Lint Dockerfile
|
uses: ludeeus/action-shellcheck@master
|
||||||
uses: hadolint/hadolint-action@v3.3.0
|
env:
|
||||||
with:
|
SHELLCHECK_OPTS: >-
|
||||||
dockerfile: Dockerfile
|
-x
|
||||||
ignore: DL3008,DL3018,DL3020,DL3029,DL3059,DL4006,DL4001,SC2114,DL3006,DL3027
|
--source-path=src
|
||||||
failure-threshold: warning
|
-e SC2129
|
||||||
-
|
-e SC2034
|
||||||
name: Validate JSON and YML files
|
-e SC2317
|
||||||
uses: GrantBirki/json-yaml-validate@v5.0.0
|
-
|
||||||
with:
|
name: Lint Dockerfile
|
||||||
yaml_exclude_regex: ".*\\kubernetes\\.yml$"
|
uses: hadolint/hadolint-action@v3.3.0
|
||||||
|
with:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
ignore: DL3008,DL3018,DL3020,DL3029,DL3059,DL4001,DL4006,DL3006
|
||||||
|
failure-threshold: warning
|
||||||
|
-
|
||||||
|
name: Validate JSON and YML files
|
||||||
|
uses: GrantBirki/json-yaml-validate@v5
|
||||||
|
|||||||
+2
-1
@@ -187,7 +187,8 @@ IUD
|
|||||||
sed -i "s|the Pxvirt Powered by Lierfang\.|Proxmox for Docker v${VERSION_ARG}.|g" /usr/bin/pvebanner
|
sed -i "s|the Pxvirt Powered by Lierfang\.|Proxmox for Docker v${VERSION_ARG}.|g" /usr/bin/pvebanner
|
||||||
|
|
||||||
# Remove kernel modules and boot files — useless in a container (~960 MB)
|
# Remove kernel modules and boot files — useless in a container (~960 MB)
|
||||||
rm -rf /usr/lib/modules /boot
|
rm -rf /usr/lib/modules
|
||||||
|
find /boot -mindepth 1 -delete
|
||||||
|
|
||||||
# Remove hardware firmware blobs — no physical hardware in a container (~520 MB)
|
# Remove hardware firmware blobs — no physical hardware in a container (~520 MB)
|
||||||
rm -rf /usr/lib/firmware
|
rm -rf /usr/lib/firmware
|
||||||
|
|||||||
Reference in New Issue
Block a user