Skip to content

Commit

Permalink
SDK-815: Fixed release script to create missed folders and update com…
Browse files Browse the repository at this point in the history
…mand to return proper exit code. (#176)

* SDK-815: Fixed release script to create missed folders.

* SDK-815: Fixed exit code for the update command.
  • Loading branch information
pavelmaksimov25 authored Aug 11, 2022
1 parent 44e0479 commit f4edd66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion infrastructure/create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ cp "${CURRENT_DIR}/config/packages/workflow.yaml" "${BUILD_DIR}/config/packages/

mkdir -p "${BUILD_DIR}/db"
mkdir -p "${BUILD_DIR}/var/cache"
mkdir -p "${BUILD_DIR}/infrastructure/debug/php"
cp -R "${CURRENT_DIR}/extension" "${BUILD_DIR}/"
cp "${CURRENT_DIR}/.env.prod" "${BUILD_DIR}/.env.prod"
cp "${CURRENT_DIR}/.gitmodules" "${BUILD_DIR}/.gitmodules"
Expand All @@ -58,7 +59,7 @@ DOCKER_BUILDKIT=1 docker build -f "${CURRENT_DIR}/infrastructure/sdk.Dockerfile"

# Clean up

rm -rf build/{bin,config,db,extension,var,.env.prod,.gitmodules,docker-compose*,VERSION,spryker-sdk.tar.gz}
rm -rf build/{bin,config,db,extension,infrastructure,var,.env.prod,.gitmodules,docker-compose*,VERSION,spryker-sdk.tar.gz}

echo -e "${GREEN}Nearly done, the next steps are:"
echo -e "${BLUE}docker login"
Expand Down
2 changes: 1 addition & 1 deletion src/Presentation/Console/Command/UpdateSdkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct(string $sdkBasePath, ProcessHelper $processHelper)
*/
public function execute(InputInterface $input, OutputInterface $output): int
{
return (int)!($this->runInstallBundles($output) || $this->runUpdate($input, $output));
return (int)($this->runInstallBundles($output) || $this->runUpdate($input, $output));
}

/**
Expand Down

0 comments on commit f4edd66

Please sign in to comment.