Skip to content

Commit

Permalink
Tweak makefile (#1118)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
TimPansino and mergify[bot] committed Apr 16, 2024
1 parent bd4e4b1 commit b364b5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/containers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ run: run.local
.PHONY: run.%
run.%:
# Build image if local was specified, else pull latest
@if [[ "$*" = "local" ]]; then cd ${MAKEFILE_DIR} && $(MAKE) build; else docker pull ${IMAGE_NAME}:$*; fi
@if [[ "$*" = "local" ]]; then \
cd ${MAKEFILE_DIR} && $(MAKE) build; \
else \
docker pull --platform=${PLATFORM} ${IMAGE_NAME}:$*; \
fi
@docker run --rm -it \
--platform=${PLATFORM} \
--mount type=bind,source="${REPO_ROOT}",target=/home/github/python-agent \
Expand Down

0 comments on commit b364b5c

Please sign in to comment.