ci: Added step to build docker image separately for ci-test-limited (#23410)
## Description - Added step to build docker image separately for ci-test-limited.yml #### Type of change - workflow file changes #### How Has This Been Tested? - Manual
This commit is contained in:
parent
504436c998
commit
aa8196b1cd
14
.github/workflows/build-client-server.yml
vendored
14
.github/workflows/build-client-server.yml
vendored
|
|
@ -28,8 +28,20 @@ jobs:
|
||||||
with:
|
with:
|
||||||
pr: 0
|
pr: 0
|
||||||
|
|
||||||
ci-test-limited:
|
build-docker-image:
|
||||||
needs: [ client-build, server-build, rts-build ]
|
needs: [ client-build, server-build, rts-build ]
|
||||||
|
# Only run if the build step is successful
|
||||||
|
if: success()
|
||||||
|
name: build-docker-image
|
||||||
|
uses: ./.github/workflows/build-docker-image.yml
|
||||||
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
pr: 0
|
||||||
|
|
||||||
|
ci-test-limited:
|
||||||
|
needs: [ build-docker-image ]
|
||||||
|
# Only run if the build step is successful
|
||||||
|
if: success()
|
||||||
name: ci-test-limited
|
name: ci-test-limited
|
||||||
uses: ./.github/workflows/ci-test-limited.yml
|
uses: ./.github/workflows/ci-test-limited.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
|
||||||
43
.github/workflows/ci-test-limited.yml
vendored
43
.github/workflows/ci-test-limited.yml
vendored
|
|
@ -71,46 +71,15 @@ jobs:
|
||||||
echo "$specs_to_run" >> $GITHUB_ENV
|
echo "$specs_to_run" >> $GITHUB_ENV
|
||||||
echo "EOF" >> $GITHUB_ENV
|
echo "EOF" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Download the client build artifact
|
- name: Download Docker image artifact
|
||||||
if: steps.run_result.outputs.run_result != 'success'
|
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: client-build
|
name: cicontainer
|
||||||
path: app/client
|
|
||||||
|
|
||||||
- name: Unpack the client build artifact
|
- name: Load Docker image from tar file
|
||||||
if: steps.run_result.outputs.run_result != 'success'
|
|
||||||
run: |
|
run: |
|
||||||
mkdir -p app/client/build
|
gunzip cicontainer.tar.gz
|
||||||
tar -xvf app/client/build.tar -C app/client/build
|
docker load -i cicontainer.tar
|
||||||
|
|
||||||
- name: Download the server build artifact
|
|
||||||
if: steps.run_result.outputs.run_result != 'success'
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: server-build
|
|
||||||
path: app/server/dist/
|
|
||||||
|
|
||||||
- name: Download the rts build artifact
|
|
||||||
if: steps.run_result.outputs.run_result != 'success'
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: rts-dist
|
|
||||||
path: app/rts/dist
|
|
||||||
|
|
||||||
- name: Un-tar the rts folder
|
|
||||||
run: |
|
|
||||||
tar -xvf app/rts/dist/rts-dist.tar -C app/rts/
|
|
||||||
echo "Cleaning up the tar files"
|
|
||||||
rm app/rts/dist/rts-dist.tar
|
|
||||||
|
|
||||||
# We don't use Depot Docker builds because it's faster for local Docker images to be built locally.
|
|
||||||
# It's slower and more expensive to build these Docker images on Depot and download it back to the CI node.
|
|
||||||
- name: Build docker image
|
|
||||||
if: steps.run_result.outputs.run_result != 'success'
|
|
||||||
working-directory: "."
|
|
||||||
run: |
|
|
||||||
docker build -t cicontainer .
|
|
||||||
|
|
||||||
- name: Create folder
|
- name: Create folder
|
||||||
working-directory: "."
|
working-directory: "."
|
||||||
|
|
@ -212,6 +181,7 @@ jobs:
|
||||||
APPSMITH_DISABLE_TELEMETRY: true
|
APPSMITH_DISABLE_TELEMETRY: true
|
||||||
APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }}
|
APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }}
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
CYPRESS_VERIFY_TIMEOUT: 100000
|
||||||
run: |
|
run: |
|
||||||
cd app/client
|
cd app/client
|
||||||
chmod a+x ./cypress/setup-test-ci.sh
|
chmod a+x ./cypress/setup-test-ci.sh
|
||||||
|
|
@ -266,6 +236,7 @@ jobs:
|
||||||
APPSMITH_DISABLE_TELEMETRY: true
|
APPSMITH_DISABLE_TELEMETRY: true
|
||||||
APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }}
|
APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }}
|
||||||
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
|
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
|
||||||
|
CYPRESS_VERIFY_TIMEOUT: 100000
|
||||||
with:
|
with:
|
||||||
browser: ${{ env.BROWSER_PATH }}
|
browser: ${{ env.BROWSER_PATH }}
|
||||||
headless: true
|
headless: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user