From 4119879f3608b3cef4daad5c18737eb7352f7ddf Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 20 Jul 2026 19:31:13 +0200 Subject: [PATCH 1/4] build: Update workflow --- .github/workflows/check.yml | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f75095d..f667cd7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,5 +1,7 @@ on: [workflow_call] + name: "Check" + permissions: {} jobs: @@ -7,19 +9,20 @@ jobs: name: shellcheck runs-on: ubuntu-latest steps: - - - name: Checkout code - uses: actions/checkout@v7 - - parallel: - - - name: Run ShellCheck - uses: ludeeus/action-shellcheck@master - env: - SHELLCHECK_OPTS: -x --source-path=src -e SC3333,SC3043 - - name: Lint Dockerfile - uses: hadolint/hadolint-action@v3.3.0 - with: - dockerfile: Dockerfile.custom - ignore: DL3008,SC3037,DL4006,DL3062,DL4001 - failure-threshold: warning + name: Checkout code + uses: actions/checkout@v7 + - parallel: + - + name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + env: + SHELLCHECK_OPTS: >- + -x + - + name: Lint Dockerfile + uses: hadolint/hadolint-action@v3.3.0 + with: + dockerfile: Dockerfile.custom + ignore: DL3008,DL4006,DL4001 + failure-threshold: warning From ea012c05a6714d95e4714869b318503c5c9b4474 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 20 Jul 2026 19:40:22 +0200 Subject: [PATCH 2/4] Update check.yml --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f667cd7..4a93def 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -24,5 +24,5 @@ jobs: uses: hadolint/hadolint-action@v3.3.0 with: dockerfile: Dockerfile.custom - ignore: DL3008,DL4006,DL4001 + ignore: DL3008,DL3062,DL4006,DL4001 failure-threshold: warning From 1b8ed3b5b2a458d1edf2ca2050226ed93d283aba Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 20 Jul 2026 19:48:24 +0200 Subject: [PATCH 3/4] Update check.yml --- .github/workflows/check.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4a93def..b6aa943 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -16,9 +16,10 @@ jobs: - name: Run ShellCheck uses: ludeeus/action-shellcheck@master + with: + ignore_names: entrypoint.sh env: - SHELLCHECK_OPTS: >- - -x + SHELLCHECK_OPTS: -x - name: Lint Dockerfile uses: hadolint/hadolint-action@v3.3.0 From a1014a07e3e8633e4c8cbefd33e36982b703951b Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 20 Jul 2026 19:49:15 +0200 Subject: [PATCH 4/4] Update Dockerfile.custom --- Dockerfile.custom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.custom b/Dockerfile.custom index 0878fd3..e7cc957 100644 --- a/Dockerfile.custom +++ b/Dockerfile.custom @@ -25,7 +25,7 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -installsuffix c # default config COPY ./CasaOS-Gateway/build/sysroot/etc/casaos/gateway.ini.sample /etc/casaos/gateway.ini -RUN mkdir -p /var/run/casaos/ && echo -n "{}" >> /var/run/casaos/routes.json +RUN mkdir -p /var/run/casaos/ && printf '%s' '{}' >> /var/run/casaos/routes.json ############################################################################################################ # Build the Go binary for the User Service