Skip to content

Commit

Permalink
Se 4219 add build workflow (mozilla#15717)
Browse files Browse the repository at this point in the history
* chore(githubAction): add build workflow initial work for argocd move

Signed-off-by: Basma1912 <[email protected]>

* fix description of the push step

Signed-off-by: Basma1912 <[email protected]>

* add prod gha runner to the workflow

Signed-off-by: Basma1912 <[email protected]>

* only use prod runner

Signed-off-by: Basma1912 <[email protected]>

* change the github runner

Signed-off-by: Basma1912 <[email protected]>

* remove cd src

Signed-off-by: Basma1912 <[email protected]>

---------

Signed-off-by: Basma1912 <[email protected]>
  • Loading branch information
Basma1912 authored Dec 12, 2024
1 parent 11c0669 commit 903e0d5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 903e0d5

Please sign in to comment.