ci: Moving server builds to Buildjet to confirm if it's faster and more reliable (#16346)

Moving server builds to Buildjet to confirm if it's faster and more reliable

Also, cleaning up some CI workflows to remove references to release-frozen branch.
This commit is contained in:
Arpit Mohan 2022-08-27 12:45:59 +02:00 committed by GitHub
parent 037efacbf3
commit 0420161861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 36 deletions

View File

@ -6,7 +6,7 @@ on:
workflow_dispatch:
push:
branches: [release, release-frozen, master]
branches: [release, master]
# Only trigger if files have changed in this specific path
paths:
- "app/rts/**"
@ -68,14 +68,6 @@ jobs:
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
docker push ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:${{steps.vars.outputs.tag}}
# Build release-frozen Docker image and push to Docker Hub
- name: Push release-frozen image to Docker Hub
if: success() && github.ref == 'refs/heads/release-frozen'
run: |
docker build -t ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:${{steps.vars.outputs.tag}} .
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
docker push ${{ secrets.DOCKER_HUB_ORGANIZATION }}/appsmith-rts:${{steps.vars.outputs.tag}}
# Build master Docker image and push to Docker Hub
- name: Push master image to Docker Hub with commit tag
if: success() && github.ref == 'refs/heads/master'

View File

@ -7,7 +7,7 @@ on:
jobs:
server-build:
runs-on: ubuntu-latest
runs-on: buildjet-4vcpu-ubuntu-2004
if: |
github.event_name == 'repository_dispatch' &&
github.event.client_payload.slash_command.sha != '' &&
@ -1291,7 +1291,7 @@ jobs:
run:
working-directory: app/client
# Run this job only if all the previous steps are a success and the reference if the release or master branch
if: success() && (github.ref == 'refs/heads/release' || github.ref == 'refs/heads/release-frozen' || github.ref == 'refs/heads/master')
if: success() && (github.ref == 'refs/heads/release' || github.ref == 'refs/heads/master')
steps:
# Update check run called "package"

View File

@ -6,7 +6,7 @@ on:
workflow_dispatch:
push:
branches: [release, release-frozen, master]
branches: [release, master]
# Only trigger if files have changed in this specific path
paths:
- "app/server/**"
@ -23,7 +23,7 @@ defaults:
jobs:
build:
runs-on: ubuntu-latest
runs-on: buildjet-4vcpu-ubuntu-2004
# Only run this workflow for internally triggered events
if: |
github.event.pull_request.head.repo.full_name == github.repository ||
@ -95,26 +95,6 @@ jobs:
-DprocessAllModules=true
./build.sh
# These are dummy jobs in the CI build to satisfy required status checks for merging PRs. This is a hack because Github doesn't support conditional
# required checks in monorepos. These jobs are a clone of similarly named jobs in client.yml.
#
# Check support request at: https://github.community/t/feature-request-conditional-required-checks/16761
ui-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
job: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
steps:
# Checkout the code
- uses: actions/checkout@v2
- name: Do nothing as this is a dummy step
shell: bash
run: |
exit 0
package:
runs-on: ubuntu-latest

View File

@ -6,7 +6,7 @@ on:
# trigger for pushes to release and master
push:
branches: [release, release-frozen, master]
branches: [release, master]
paths:
- "app/client/**"
- "app/server/**"
@ -175,7 +175,7 @@ jobs:
defaults:
run:
working-directory: app/server
runs-on: ubuntu-latest
runs-on: buildjet-4vcpu-ubuntu-2004
# Only run this workflow for internally triggered events
if: |
github.event_name == 'workflow_dispatch' ||
@ -417,7 +417,7 @@ jobs:
(github.event_name == 'pull_request_review' &&
github.event.review.state == 'approved' &&
github.event.pull_request.head.repo.full_name == github.repository))
runs-on: ubuntu-latest
runs-on: buildjet-4vcpu-ubuntu-2004
defaults:
run:
shell: bash