generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): fails preview workflow if any build fails. Display failed …
…build on the index.html (#472) * chore(ci): fail preview workflow if app can be build * chore(ci): add test commit * chore(ci): adds forgotten ids... * chore(ci): adds example app. Display failing steps in a loop * chore(ci): adds example app, new script and tests loop * chore(ci): adds outcome as env * chore(ci): fixes new line and comments fi * chore(ci): fixes typo * chore(ci): sets executalbe script * chore(ci): builds example if changes in ui-components * chore(example): fixes vitify common settings * chore(ci): adds debug * chore(ci): adds rest of the steps to the loop * chore(ci): adds new vars for testing * chore(ci): prints out envs * chore(ci): uses global envs * chore(ci): adds common envs to storybook * chore(ci): adds icon to the statment in the index.html * chore(ci): test error * chore(ci): tests error in step * chore(ci): removes tests * chore(ci): disables precompile-envs on close
- Loading branch information
Showing
5 changed files
with
106 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# collect the necessary information | ||
entry_file=$(jq -r '.module // .main' $PACKAGE_PATH/package.json) | ||
build_folder=$(dirname $entry_file) | ||
package_name=$(jq -r '.name' $PACKAGE_PATH/package.json) | ||
|
||
# Run build using turbo | ||
npx turbo run build:static --filter $package_name | ||
|
||
# Copy build folder to deploy path | ||
mkdir -p "$DEPLOY_PATH/$TARGET_FOLDER" | ||
cp -r "$PACKAGE_PATH/$build_folder/." "$DEPLOY_PATH/$TARGET_FOLDER" | ||
|
||
# Generate appProps.json if APP_PROPS_BASE64 is non-empty | ||
if [ -n "$APP_PROPS_BASE64" ]; then | ||
echo "$APP_PROPS_BASE64" | base64 -d > "$DEPLOY_PATH/$TARGET_FOLDER/appProps.json" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters