diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index f5a92d2..c9818b2 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -3,6 +3,9 @@ on: pull_request: paths: - "**.*" + - "main.go" + - "go.mod" + - "Dockerfile" push: branches: - develop diff --git a/Dockerfile b/Dockerfile index 52ff0d0..c056c89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,8 +22,8 @@ RUN \ mkdir -p /opt/method/${CLI_NAME}/service/bin && \ mkdir -p /mnt/output -# COPY configs/* /opt/method/${CLI_NAME}/var/conf/ -# COPY ${CLI_NAME} /opt/method/${CLI_NAME}/service/bin/${CLI_NAME} +COPY configs/* /opt/method/${CLI_NAME}/var/conf/ +COPY ${CLI_NAME} /opt/method/${CLI_NAME}/service/bin/${CLI_NAME} RUN \ adduser --disabled-password --gecos '' ${USERNAME} && \ @@ -38,3 +38,4 @@ RUN \ pipx install semgrep==${SEMGREP_VERSION} ENV PATH="/opt/method/${CLI_NAME}/service/bin:/home/${USERNAME}/.local/bin:${PATH}" +ENTRYPOINT [ "codeanalyze" ]