Skip to content

Commit

Permalink
Disabled the schedule for action and removed patch apply for build ta…
Browse files Browse the repository at this point in the history
…rball.
  • Loading branch information
AdityaHonkalas committed Jul 23, 2024
1 parent e3cf01b commit 5e7c792
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
10 changes: 4 additions & 6 deletions .github/scripts/build_console.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

set -x

OCP_RELEASES=("release-4.16")
OCP_RELEASES=("release-4.12" "release-4.13" "release-4.14" "release-4.15" "release-4.16")

CONSOLE_BUILT_DATE=$(date +%Y%m%d)

PATCH_FILE_PATH=/home/runner/work/power-patch
# PATCH_FILE_PATH=/home/runner/work/power-patch
CONSOLE_BUILD_TAR=/home/runner/work/console-tar

# create a patch directory and store power-patch.patch
mkdir $PATCH_FILE_PATH
cp power-patch.patch $PATCH_FILE_PATH
# mkdir $PATCH_FILE_PATH
# cp power-patch.patch $PATCH_FILE_PATH

mkdir $CONSOLE_BUILD_TAR

Expand All @@ -35,14 +35,12 @@ for release_branch in "${OCP_RELEASES[@]}"
do

git checkout $release_branch
git apply $PATCH_FILE_PATH/power-patch.patch
echo "Building the code..."
./build.sh
echo "Creating a tar zip of build code..."
tar -czvf "$CONSOLE_BUILD_TAR/console-built-$release_branch-$CONSOLE_BUILT_DATE.tgz" .
echo "Upload the console tar ball to COS bucket"
ibmcloud cos object-put --bucket $IBMCLOUD_COS_BUCKET --key console-built-$release_branch-$CONSOLE_BUILT_DATE.tgz --body "$CONSOLE_BUILD_TAR/console-built-$release_branch-$CONSOLE_BUILT_DATE.tgz" --region $IBMCLOUD_REGION
git reset --hard

done

Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/sync_upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -x

OCP_RELEASES=("release-4.10" "release-4.11" "release-4.12" "release-4.13" "release-4.14")
OCP_RELEASES=("release-4.12" "release-4.13" "release-4.14" "release-4.15" "release-4.16")

# Set global config to add user details
git config --global user.email "[email protected]"
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/build_console.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: console-release-build
run-name: Build the console code
on:
schedule:
- cron: "0 6 * * 1"
workflow_dispatch:

run-name: Build the console code

jobs:
create-console-build:
Expand All @@ -19,7 +14,7 @@ jobs:
- name: Install Node/JS
uses: actions/setup-node@v3
with:
node-version: 16.18.0
node-version: 18.20.0
- run: node -v

- name: Install the yarn with npm
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/sync-upstream.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Sync to upstream
on:
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:

run_name: Sync branches to upstream

env:
UPSTREAM_REPO: https://github.com/openshift/console.git
Expand Down

0 comments on commit 5e7c792

Please sign in to comment.