Skip to content

Commit

Permalink
fix: running the goat locally (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonZeolla authored Jun 4, 2024
1 parent f5005e6 commit 0ced2d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# syntax=docker/dockerfile:1

# TARGETPLATFORM is special cased by docker and doesn't need the inital ARG
# TARGETPLATFORM is special cased by docker and doesn't need the initial ARG
# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
FROM --platform=$TARGETPLATFORM ghcr.io/yannh/kubeconform:v0.6.3 as kubeconform
FROM --platform=$TARGETPLATFORM ghcr.io/yannh/kubeconform:v0.6.6-alpine as kubeconform
ARG TARGETPLATFORM
FROM --platform=$TARGETPLATFORM hadolint/hadolint:v2.12.0-alpine as hadolint
ARG TARGETPLATFORM
FROM --platform=$TARGETPLATFORM koalaman/shellcheck:v0.9.0 as shellcheck
FROM --platform=$TARGETPLATFORM koalaman/shellcheck:v0.10.0 as shellcheck
ARG TARGETPLATFORM
FROM --platform=$TARGETPLATFORM rhysd/actionlint:1.6.25 as actionlint
FROM --platform=$TARGETPLATFORM rhysd/actionlint:1.7.1 as actionlint

ARG TARGETPLATFORM
FROM --platform=$TARGETPLATFORM python:3.11-alpine3.18 as base_image
FROM --platform=$TARGETPLATFORM python:3.11-alpine3.20 as base_image

ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
Expand Down
1 change: 1 addition & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ tasks:
desc: Clean up build artifacts, cache files/directories, temp files, etc.
cmds:
- task: bash:clean
- rm -rf {{.ROOT_DIR}}/node_modules

release:
desc: Cut a project release
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function rerun_lint() {
}

function initiate_code_review() {
if [ -n "$GITHUB_ACTIONS" ]; then
if [[ -n ${GITHUB_ACTIONS:+x} ]]; then
# Run the Python script
python /opt/goat/bin/code_review.py
fi
Expand Down

0 comments on commit 0ced2d6

Please sign in to comment.