Skip to content

Commit

Permalink
Merge pull request #3 from avito-tech/emcee-cloud-cli_0.1.0
Browse files Browse the repository at this point in the history
release 0.1.0
  • Loading branch information
JasperJhons authored Dec 12, 2024
2 parents 0648033 + 0ec9791 commit 1503168
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM debian:12.6-slim

ENV EMCEE_CLI_VERSION=0.0.2
ENV EMCEE_CLI_VERSION=0.1.0
ENV EMCEE_CLI_ARCHITECTURE=x86_64

RUN apt-get update && apt-get -y install bash grep curl
Expand Down
10 changes: 10 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ EMCEE_REPORTS=${EMCEE_REPORTS:-""}
EMCEE_RUNNER=${EMCEE_RUNNER:-""}
EMCEE_TESTS_APP_PATH=${EMCEE_TESTS_APP_PATH:-""}
EMCEE_WAIT_FOR_FINISH=${EMCEE_WAIT_FOR_FINISH:-""}
EMCEE_BUILD_ID=${EMCEE_BUILD_ID:-""}
EMCEE_RUN_COMMAND=${EMCEE_RUN_COMMAND:-""}

ARGS=''

Expand Down Expand Up @@ -60,6 +62,14 @@ if [[ ! -z "$EMCEE_WAIT_FOR_FINISH" ]]; then
ARGS="${ARGS} -w $EMCEE_WAIT_FOR_FINISH"
fi

if [[ ! -z "$EMCEE_BUILD_ID" ]]; then
ARGS="${ARGS} --build_id $EMCEE_BUILD_ID"
fi

if [[ ! -z "$EMCEE_RUN_COMMAND" ]]; then
ARGS="${ARGS} --run_command $EMCEE_RUN_COMMAND"
fi

echo 'Result ARGS: ${ARGS}'

emcee-cloud run $EMCEE_PLATFORM $ARGS

0 comments on commit 1503168

Please sign in to comment.