Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
on: [workflow_call]

name: "Check"

permissions: {}

jobs:
shellcheck:
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
with:
ignore_names: entrypoint.sh
env:
SHELLCHECK_OPTS: -x
-
name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: Dockerfile.custom
ignore: DL3008,DL3062,DL4006,DL4001
failure-threshold: warning
2 changes: 1 addition & 1 deletion Dockerfile.custom
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading