Skip to content

Commit

Permalink
ci: build by commit (#146)
Browse files Browse the repository at this point in the history
* refactor: remove unused variables

* ci: build images conditions

* ci: condition check fix
  • Loading branch information
nugaon authored Jul 1, 2024
1 parent 6d97d5b commit 6af71e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ jobs:
run: |
cd ./orchestrator
BUILD_PARAMS=""
if [ $BUILD_IMAGE == 'true' ] ; then
if [ "$BUILD_IMAGE" = 'true' ]; then
BUILD_PARAMS+=" --build-base-bee --base-bee-commit-hash=$BEE_VERSION"
fi
if [ $STATE_COMMIT == 'true' ] ; then
if [ "$STATE_COMMIT" = 'true' ]; then
BUILD_PARAMS+=" --gen-traffic"
fi
if [ $BUILD_PARAMS != "" ] ; then
if [ -n "$BUILD_PARAMS" ]; then
BUILD_PARAMS="-- $BUILD_PARAMS"
fi
npm run build:env $BUILD_PARAMS
Expand All @@ -97,10 +97,10 @@ jobs:
run: |
cd ./orchestrator
PUBLISH_PARAMS=""
if [ $LATEST == 'true' ] ; then
if [ "$LATEST" = 'true' ]; then
PUBLISH_PARAMS+=" --latest"
fi
if [ $PUBLISH_PARAMS != "" ] ; then
if [ -n "$PUBLISH_PARAMS" ]; then
PUBLISH_PARAMS="-- $PUBLISH_PARAMS"
fi
npm run publish:env $PUBLISH_PARAMS
4 changes: 0 additions & 4 deletions orchestrator/builder/build-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,8 @@ MY_PATH=$(dirname "$0")
MY_PATH=$( cd "$MY_PATH" && pwd )
COMMIT_HASH=HEAD
BUILD_BASE_BEE=false
CHEQUES_COUNT=1
# Bee version here means the base bee version on which the images will be built
BEE_VERSION=$("$MY_PATH/utils/env-variable-value.sh" BEE_VERSION)
BLOCKCHAIN_VERSION=$("$MY_PATH/utils/env-variable-value.sh" BLOCKCHAIN_VERSION)

SUPPORTED_WORKER_N=4

# handle passed options
while [ $# -gt 0 ]
Expand Down

0 comments on commit 6af71e6

Please sign in to comment.