From 903e0d5af084ff54ac51d6f295c1b5c350ad73f5 Mon Sep 17 00:00:00 2001 From: Basma A Date: Thu, 12 Dec 2024 17:53:39 -0500 Subject: [PATCH] Se 4219 add build workflow (#15717) * chore(githubAction): add build workflow initial work for argocd move Signed-off-by: Basma1912 * fix description of the push step Signed-off-by: Basma1912 * add prod gha runner to the workflow Signed-off-by: Basma1912 * only use prod runner Signed-off-by: Basma1912 * change the github runner Signed-off-by: Basma1912 * remove cd src Signed-off-by: Basma1912 --------- Signed-off-by: Basma1912 --- .github/workflows/build-and-push.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 2d6424c2e26..d13b671bb61 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -29,7 +29,7 @@ env: jobs: build_and_publish_public_images: name: Build public Bedrock images and push to Docker hub - runs-on: [self-hosted, prod, us-central1, bedrock] + runs-on: ubuntu-latest outputs: long_sha: ${{ steps.long-sha.outputs.LONG_SHA }} @@ -48,7 +48,7 @@ jobs: - id: long-sha run: |- - cd src && echo "LONG_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + echo "LONG_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT - id: docker-login name: Docker login @@ -68,7 +68,7 @@ jobs: push_image_to_gar: name: Push Image to GAR needs: build_and_publish_public_images - runs-on: [self-hosted, prod, us-central1, bedrock] + runs-on: ubuntu-latest environment: build permissions: contents: read @@ -81,6 +81,12 @@ jobs: steps: + - id: checkout-application-repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + ref: ${{ env.REF_ID }} - id: dev_image_tag name: Set Docker dev image tag for updates of the main branch