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
16
.github/workflows/build-client-server.yml
vendored
16
.github/workflows/build-client-server.yml
vendored
|
|
@ -27,11 +27,23 @@ jobs:
|
|||
secrets: inherit
|
||||
with:
|
||||
pr: 0
|
||||
|
||||
build-docker-image:
|
||||
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: [ client-build, server-build, rts-build ]
|
||||
needs: [ build-docker-image ]
|
||||
# Only run if the build step is successful
|
||||
if: success()
|
||||
name: ci-test-limited
|
||||
uses: ./.github/workflows/ci-test-limited.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
pr: 0
|
||||
pr: 0
|
||||
|
|
|
|||
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 "EOF" >> $GITHUB_ENV
|
||||
|
||||
- name: Download the client build artifact
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
- name: Download Docker image artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: client-build
|
||||
path: app/client
|
||||
name: cicontainer
|
||||
|
||||
- name: Unpack the client build artifact
|
||||
if: steps.run_result.outputs.run_result != 'success'
|
||||
- name: Load Docker image from tar file
|
||||
run: |
|
||||
mkdir -p app/client/build
|
||||
tar -xvf app/client/build.tar -C app/client/build
|
||||
|
||||
- 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 .
|
||||
gunzip cicontainer.tar.gz
|
||||
docker load -i cicontainer.tar
|
||||
|
||||
- name: Create folder
|
||||
working-directory: "."
|
||||
|
|
@ -212,6 +181,7 @@ jobs:
|
|||
APPSMITH_DISABLE_TELEMETRY: true
|
||||
APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }}
|
||||
POSTGRES_PASSWORD: postgres
|
||||
CYPRESS_VERIFY_TIMEOUT: 100000
|
||||
run: |
|
||||
cd app/client
|
||||
chmod a+x ./cypress/setup-test-ci.sh
|
||||
|
|
@ -266,6 +236,7 @@ jobs:
|
|||
APPSMITH_DISABLE_TELEMETRY: true
|
||||
APPSMITH_GOOGLE_MAPS_API_KEY: ${{ secrets.APPSMITH_GOOGLE_MAPS_API_KEY }}
|
||||
COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
|
||||
CYPRESS_VERIFY_TIMEOUT: 100000
|
||||
with:
|
||||
browser: ${{ env.BROWSER_PATH }}
|
||||
headless: true
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user