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:
parent
037efacbf3
commit
0420161861
10
.github/workflows/build-rts.yml
vendored
10
.github/workflows/build-rts.yml
vendored
|
|
@ -6,7 +6,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches: [release, release-frozen, master]
|
branches: [release, master]
|
||||||
# Only trigger if files have changed in this specific path
|
# Only trigger if files have changed in this specific path
|
||||||
paths:
|
paths:
|
||||||
- "app/rts/**"
|
- "app/rts/**"
|
||||||
|
|
@ -68,14 +68,6 @@ jobs:
|
||||||
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
|
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}}
|
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
|
# Build master Docker image and push to Docker Hub
|
||||||
- name: Push master image to Docker Hub with commit tag
|
- name: Push master image to Docker Hub with commit tag
|
||||||
if: success() && github.ref == 'refs/heads/master'
|
if: success() && github.ref == 'refs/heads/master'
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
server-build:
|
server-build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: buildjet-4vcpu-ubuntu-2004
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'repository_dispatch' &&
|
github.event_name == 'repository_dispatch' &&
|
||||||
github.event.client_payload.slash_command.sha != '' &&
|
github.event.client_payload.slash_command.sha != '' &&
|
||||||
|
|
@ -1291,7 +1291,7 @@ jobs:
|
||||||
run:
|
run:
|
||||||
working-directory: app/client
|
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
|
# 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:
|
steps:
|
||||||
# Update check run called "package"
|
# Update check run called "package"
|
||||||
|
|
|
||||||
24
.github/workflows/server.yml
vendored
24
.github/workflows/server.yml
vendored
|
|
@ -6,7 +6,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches: [release, release-frozen, master]
|
branches: [release, master]
|
||||||
# Only trigger if files have changed in this specific path
|
# Only trigger if files have changed in this specific path
|
||||||
paths:
|
paths:
|
||||||
- "app/server/**"
|
- "app/server/**"
|
||||||
|
|
@ -23,7 +23,7 @@ defaults:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: buildjet-4vcpu-ubuntu-2004
|
||||||
# Only run this workflow for internally triggered events
|
# Only run this workflow for internally triggered events
|
||||||
if: |
|
if: |
|
||||||
github.event.pull_request.head.repo.full_name == github.repository ||
|
github.event.pull_request.head.repo.full_name == github.repository ||
|
||||||
|
|
@ -95,26 +95,6 @@ jobs:
|
||||||
-DprocessAllModules=true
|
-DprocessAllModules=true
|
||||||
./build.sh
|
./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:
|
package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ on:
|
||||||
|
|
||||||
# trigger for pushes to release and master
|
# trigger for pushes to release and master
|
||||||
push:
|
push:
|
||||||
branches: [release, release-frozen, master]
|
branches: [release, master]
|
||||||
paths:
|
paths:
|
||||||
- "app/client/**"
|
- "app/client/**"
|
||||||
- "app/server/**"
|
- "app/server/**"
|
||||||
|
|
@ -175,7 +175,7 @@ jobs:
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: app/server
|
working-directory: app/server
|
||||||
runs-on: ubuntu-latest
|
runs-on: buildjet-4vcpu-ubuntu-2004
|
||||||
# Only run this workflow for internally triggered events
|
# Only run this workflow for internally triggered events
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'workflow_dispatch' ||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
|
|
@ -417,7 +417,7 @@ jobs:
|
||||||
(github.event_name == 'pull_request_review' &&
|
(github.event_name == 'pull_request_review' &&
|
||||||
github.event.review.state == 'approved' &&
|
github.event.review.state == 'approved' &&
|
||||||
github.event.pull_request.head.repo.full_name == github.repository))
|
github.event.pull_request.head.repo.full_name == github.repository))
|
||||||
runs-on: ubuntu-latest
|
runs-on: buildjet-4vcpu-ubuntu-2004
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user