From 21259735823228049785927b22119f41b09f6c10 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Mon, 26 May 2025 15:22:12 +0200 Subject: [PATCH] chore(build): Better error handling Signed-off-by: rjshrjndrn --- .github/workflows/patch-build.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/patch-build.yaml b/.github/workflows/patch-build.yaml index 3588883dd..b600cc72e 100644 --- a/.github/workflows/patch-build.yaml +++ b/.github/workflows/patch-build.yaml @@ -46,6 +46,8 @@ jobs: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${{ secrets.RELEASE_OSS_REGISTRY }} - uses: depot/setup-action@v1 + env: + DEPOT_TOKEN: ${{ secrets.DEPOT_TOKEN }} - name: Get HEAD Commit ID run: echo "HEAD_COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV - name: Define Branch Name @@ -79,7 +81,7 @@ jobs: } function clone_msaas() { [ -d $MSAAS_REPO_FOLDER ] || { - git clone -b dev --recursive https://x-access-token:$MSAAS_REPO_CLONE_TOKEN@$MSAAS_REPO_URL $MSAAS_REPO_FOLDER + git clone -b dev --recursive $MSAAS_REPO_URL $MSAAS_REPO_FOLDER cd $MSAAS_REPO_FOLDER cd openreplay && git fetch origin && git checkout main # This have to be changed to specific tag git log -1 @@ -98,7 +100,7 @@ jobs: else cd $MSAAS_REPO_FOLDER/openreplay/$service fi - IMAGE_TAG=$version DOCKER_RUNTIME="depot" DOCKER_BUILD_ARGS="--push" ARCH=arm64 DOCKER_REPO=$DOCKER_REPO_ARM PUSH_IMAGE=0 bash build.sh >> /tmp/arm.txt + IMAGE_TAG=$version DOCKER_RUNTIME="depot" DOCKER_BUILD_ARGS="--push --platform linux/amd64" ARCH=amd64 DOCKER_REPO=$DOCKER_REPO_OSS PUSH_IMAGE=0 bash $BUILD_SCRIPT_NAME >> /tmp/managed_${service}.txt 2>&1 || { echo "Build failed for $service"; cat /tmp/managed_${service}.txt; exit 1; } } # Checking for backend images ls backend/cmd >> /tmp/backend.txt